Redux persistance errors.
See original GitHub issueI am getting the following error when using the shopping cart with NextJS. And I am not able to persist the shopping cart data after refresh.
Not sure where the cause lies for these specific errors.
Version 3.0.3
A non-serializable value was detected in an action, in the path: register
. Value: [Function: register]
Take a look at the logic that dispatched this action: {
type: ‘persist/PERSIST’,
register: [Function: register],
rehydrate: [Function: rehydrate]
}
(See https://redux.js.org/faq/actions#why-should-type-be-a-string-or-at-least-serializable-why-should-my-action-types-be-constants)
(To allow non-serializable values see: https://redux-toolkit.js.org/usage/usage-guide#working-with-non-serializable-data)
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
console.error: "redux-persist failed to create sync storage ...
In redux-persist v6, you try changing as follows: Old config V5 => import storage from 'redux-persist/lib/storage'; const persistConfig ...
Read more >redux-persist-error-handler - npm
A higher order component to avoid infinite loops when using redux persist with react native. Latest version: 0.1.1, last published: 5 years ...
Read more >ERROR: Reducer returns undefined for persist/REHYDRATE ...
I'm getting this error in the console: Uncaught Error: Given action "persist/PERSIST", reducer "mealReducer" returned undefined. To ignore an ...
Read more >Persist state with Redux Persist using Redux Toolkit in React
Redux Persist includes methods that allow us to customize the state that gets persisted and rehydrated, all with an easily understandable ...
Read more >Uncaught Error: redux-persist: cannot process cyclical state ...
Uncaught Error: redux-persist: cannot process cyclical state. Consider changing your state structure to have no cycles. 333 views.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @JanKups , So basically now I am just setting the cartDetails to be empty when they are not available yet.
Hey @andrewjmcgehee, going to be looking into it this week.