svelte-persistent-store
svelte-persistent-store copied to clipboard
Listen to window storage event and set that value in the localStorage store
See here: https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event
This makes sense right? Since the store is synced with localStorage, it should be bound both ways right? I'd suggest to implement this both for the readable and for the writable store.