redux-persist:cannot process cyclical state
See original GitHub issueHey,I encounter a problem like this:
redux-persist:cannot process cyclical state.
Consider changing your state structure to have no cycles.
Alternatively blacklist the corresponding reducer key.
Cycle encounted at key "context" with value "[object Object]"
And my state structure is:
{
"activeConversation": "223sssse234234",
"client": IMClient, // object
"convById": Map() // Map, store the conversation object
"msgById": Map() // Map, store the message object
convListSortedByUpdatedTimeList(), // store the message ids
}
so how can I resolve the problem? I need your help,thank you!
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Uncaught Error: redux-persist: cannot process cyclical state ...
So, I'm using redux-offline (which uses redux-persist) in my project, and am having an issue with action payload/firebase results being non-serialized (See ...
Read more >redux-persist cannot process cyclical state in bundled android ...
I've been working on a react-native app and have been running it on both IOS and Android simulators as well as on devices...
Read more >TypeError: cyclic object value - JavaScript - MDN Web Docs
The JavaScript exception "cyclic object value" occurs when object references were found in JSON. JSON. stringify() doesn't try to solve them ...
Read more >Reduxpersist/Createpersistoid: Error Serializing State Typeerror
The JavaScript exception cyclic object value occurs when object references were found in JSON. JSON.stringify doesn't try to solve them and fails. Contribute...
Read more >The redux best practice "Do Not Put Non-Serializable Values ...
Actually, redux-persist documentation explains that they are not able to persist ... Well, you certainly cannot use the Set's add method, ...
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 Free
Top 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
I’ve been having basically the same issue, I’m having the log that follows:
Where
0
is the first position of an array and5978ab989c24c60015f1a81c
is a id from my mongodb. This is being stored like this:Any idea of what I may be doing wrong?
I was storing my react-navigation current navigation state in the redux store and that was somehow causing a cycle. Changed it to only store the current route name