-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Storage event support #104
Comments
You're right, I actually didn't even know there was a storage event! I'm open to adding support for it. |
I don't think the others have something like that, so I think you can emulate it only by short polling the databases and adding a lastModified timestamp to them. |
https://developer.mozilla.org/en-US/docs/Web/API/window.postMessage?redirectlocale=en-US&redirectslug=DOM/window.postMessage |
Other possible solution to share the info between tabs is using a |
Is this still a thing? |
I don't think there's any interest in it at this point and I don't see the appeal, so I say we close it. If anyone disagrees let me know 😄 |
Well, one thing that it is really useful for would be for things like these: https://github.com/rt2zz/redux-persist-crosstab This would make it easier to 'just' make it work, instead of having to use |
Huh, interesting. Okay, I'll keep it open then. We haven't had any traction on fixing it but after seeing that use-case I'd totally accept a patch! 😄 |
Since we already have https://github.com/localForage/localForage-observable , should this ticket just have cross-tab notification as a pending? |
Oops, I forgot about that. Yeah, looks like that's all this is really missing. |
Just opened localForage/localForage-observable#5 to track the cross-tab support. @tofumatt should we close this one and #244 and move the discussion to the plugin's repo? |
Yeah, I think that's good. @TheNeikos, please follow localForage/localForage-observable#5 for further updates on this 😄 |
Just opened localForage/localForage-observable#6 for this. Any feedback would be great and could help releasing it during the weekend. |
I checked the code, but I haven't found support for the storage event. Maybe I just missed it, but if not, then this is a feature request...
The text was updated successfully, but these errors were encountered: