quarrant / mobx-persist-store

Persist and rehydrate observable properties in mobx store.
268 stars 14 forks source link

reaction in a different tab #67

Closed hartum closed 2 years ago

hartum commented 2 years ago

Hi, congrats for the library is really great

I was wondering if it is possible to write in the store from one tab of the browser (mysite.com) and trigger the reaction from a different tab (mysite.com/test)?

Any idea about how to face this?

codeBelt commented 2 years ago

You can look into using https://developer.mozilla.org/en-US/docs/Web/API/Window/storage_event

hartum commented 2 years ago

That worked for me, thank you very much