-
Notifications
You must be signed in to change notification settings - Fork 862
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
Error restoring data for key:todoList [ReferenceError: localStorage is not defined] #41
Comments
yes this is a relatively easy fix question though: how do you expect redux-persist to work on the server? are you expecting a noop? |
Unless you do not store states on the server side, you don't need Redux Persist there. A solution could be to move store persisting in a separate module and import it only on the client side or to have 2 different implementations depending on the side. Like here. |
@rt2zz : Yes something like noop. @zalmoxisus: I saw your solution, exactly how do you decide where is the app running? |
In that example, I just add the environment flag to the second parameter of Using |
just released 1.4.5 no localStorage now @zalmoxisus I do not think |
thanks @rt2zz and @zalmoxisus !! |
I am seeing this error in console and most probably that's happening on the node server side (isomorphic app). Is there a way to handle this?
The text was updated successfully, but these errors were encountered: