Giter Club home page Giter Club logo

Comments (10)

dmurph avatar dmurph commented on June 8, 2024

Indexedb observers are now working behind a flag in Canary

from localforage-observable.

thgreasi avatar thgreasi commented on June 8, 2024

That's great. I'm thinking about an initial release using localstorage to propagate cross tab events. After IndexedDB events gets implemented without a flag from one more browser engine, we can plan upgrading the architecture.

from localforage-observable.

TheNeikos avatar TheNeikos commented on June 8, 2024

Thanks a lot for working on this!

from localforage-observable.

dmurph avatar dmurph commented on June 8, 2024

Awesome! If you have any time to take a look at the current API (see sample here:
https://googlechrome.github.io/samples/indexeddb-observers/) any feedback would be greatly appreciated.

from localforage-observable.

thgreasi avatar thgreasi commented on June 8, 2024

Just opened PR #6. It would be great to receive some feedback and then release during the weekend.

from localforage-observable.

thgreasi avatar thgreasi commented on June 8, 2024

Just meged #6 and released v1.1.0 which includes cross-tab observation.

from localforage-observable.

TheNeikos avatar TheNeikos commented on June 8, 2024

Thanks a lot. Going to implement this now

from localforage-observable.

deiu avatar deiu commented on June 8, 2024

Hi! Is this feature supported in all browsers? It would be useful to have a note in the README about current browser support.

Also, are there any plans to merge this feature into the main repo?

Edit: I'm only interested in support for IndexedDB, not localStorage.

from localforage-observable.

thgreasi avatar thgreasi commented on June 8, 2024

@deiu This is based on localStorage events, so it should work wherever localStorage is supported.
My main concern would be private browsing, which essentially beats the purpose, since the user by definition requests for an isolated tab, so this should be a non-issue.

from localforage-observable.

deiu avatar deiu commented on June 8, 2024

Thanks for the quick reply! I see. I knew the eventListener for localStorage is available but for some reason I'm thinking by default of IndexedDB when using localForage. After reading the thread again, I see you mentioned waiting for native IndexedDB support in browsers.

from localforage-observable.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.