-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
How can I fully use ImmutableJS? #108
Comments
Yeah, that's why the |
Do you have an actual recommendation on how to solve the problem? Obviously the state is built up through a tree of combined reducers. I could implement a custom |
Yes exactly, it's somewhat fragile, but I don't know about better way for now unfortunately. I have a state deserializer like this.
|
Closing as inactive. |
For anyone who finds this in the future: My solution was to give up on Immutable JS and use https://github.com/leoasis/redux-immutable-state-invariant to tell me if I mutate state somewhere. As long as you turn on |
I'm playing with the boilerplate by @mxstbr, which uses Immutable.js for the entire state and I can't figure out how
And it looks like I can't supplement the root reducer with some extra dummy reducer in I was getting myself familiar with redux-devtools via Walkthrough.md so thought that it would be good to mention the case of an Immutable store there. I've seen some threads in various repos that are trying to approach the issue I face, but it would be probably good to have some hint where there's the highest number of newcomers. @gaearon could you please add a couple of lines of text describing what to use instead of |
The first time I committed to a debug session when I reloaded my state broke because
.get()
didn't exist on the objects in the store. It seemed like the solution was to provide astateDeserializer
topersistState
.The next level problem is that
fromJS
only converts arrays toList
or objects toMap
. If your store relies onRecord
s,Set
s or any of the specialized data types, it doesn't really deserialize correctly.The text was updated successfully, but these errors were encountered: