rt2zz / redux-persist

persist and rehydrate a redux store
MIT License
12.91k stars 863 forks source link

feature: resync state #1332

Closed SebastienGllmt closed 1 year ago

SebastienGllmt commented 2 years ago

In our application, we want to resync our redux state from localStorage when the user re-focuses the tab

We do this so that if the user has multiple pages accessing the same localStorage instance, the user tab the user has focused always pulls the latest state.

In a sense, this resync action is the opposite of flush

SebastienGllmt commented 1 year ago

Closing in favor of #1403 because the whole repo got rewritten in typescript since I originally made this PR