-
Notifications
You must be signed in to change notification settings - Fork 17
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
Syncing localStorage across instances #19
Comments
We've decided not to do it in order to keep the code clean, it was just a wrapper for localstorage API. There are no current plans to extend it. I see the need, so this might change. We've created many elements with global state. |
For anyone wondering why this is the case, See here. When you call |
For those looking for a work-around, any time you change I also played around with the iron-localstorage code, and adding the appropriate dispatchEvent call in the |
…nchrnous mainly to reduce complexity as well as avoiding issues related to iron-localstorage where events are not being triggered as expected. See PolymerElements/iron-localstorage#19.
Are there any plans to have this sync changes to
localStorage
that occur on the same page, is this already implemented? Or at least for changes made through other instances ofiron-localstorage
- similar toiron-meta
? I have multiple instances ofiron-localstorage
referencing the same key, and seems - at least for me - like a common use case to want them all to update when any one of them update.The text was updated successfully, but these errors were encountered: