-
Notifications
You must be signed in to change notification settings - Fork 4
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 [object Object] #16
Comments
@bigfree
and let me know if that fixed the issue. Explaination: |
@piotr-cz const persistConfig: PersistConfig<any> & {deserialize: boolean} = {
...
}
ah good to know 😄 |
Did you try with setting both serialize & deserialize option to true and false? Too bad authors didn't document this as IMHO it's a breaking change. As for types, there are two PR's: rt2zz/redux-persist#1153, rt2zz/redux-persist#1304 |
This only works if both values are set to true/false. serialize: true,
deserialize: true, serialize: false,
deserialize: false, if option to serialize is set, of course object is not stored in database, only string. |
Reported by @bigfree:
I try, build is success but now there is an error in retrieving data from the DB 😢
The data is stored in the database, but when the page is refreshed, it is no longer in the database. However, the structure of the database remains the same.
Store data:
After refresh:
My persist config:
Originally posted by @bigfree in #14 (comment)
The text was updated successfully, but these errors were encountered: