-
Notifications
You must be signed in to change notification settings - Fork 18
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
Redux store and sessionStorage: syncing defeats purpose? #6
Comments
Seems to work for me. Dunno if this is still relevant, but here ya go! :) |
@stevematdavies did it got resolved for you ? you need to use redux-storage-engine-sessionstorage and it will work. |
I don't understand second part (below) on how to customize wait part as mentioned. Anyone has idea how I can customize this reducer which is getting executed when SAVE and LOAD actions get dispatched. Actions redux-storage will trigger actions after every load or save operation from the underlying engine. You can use this, for example, to display a loading screen until the old state has been restored like this:
|
Due to lack of concrete examples, I am unclear how this actually works. My main intention in using this library is to persist some state values to sessionStorage (I'm using the relevant engine) during a page refresh. However, following the limited setup in the documentation, every time I refresh the page, the initial state is recalled and updates the sessionStorage with the same value, this to me defeats the entire purpose of browser persistence.
It's most likely Im not grasping the focus of this, but as I say, I cannot find any practical examples of this library, an thus I remain in the dark as to how to properly implement it,
The text was updated successfully, but these errors were encountered: