Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to look for storage change across browser tabs? #267

Open
ajinkyapisal opened this issue Feb 1, 2018 · 2 comments
Open

How to look for storage change across browser tabs? #267

ajinkyapisal opened this issue Feb 1, 2018 · 2 comments

Comments

@ajinkyapisal
Copy link

I tried it by using store.observe and store.watch but both are working on the same tab where the event was created. Is there a way to do it across browser tabs? Thanks.

@adarshmadrecha
Copy link

adarshmadrecha commented May 29, 2018

I am also looking for this. I have posted a question on SO - https://stackoverflow.com/q/50580689

@nbubna
Copy link

nbubna commented May 29, 2018

Storage events are what you need. And these actually only work reliably from different windows/tabs, not in the same one: https://html5demos.com/storage-events/

My store2 library has an extension (store.on.js), but i'd be shocked if there weren't a plugin for Marcus' that supports storage events as well. Hopefully he'll chime in with more on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants