-
Notifications
You must be signed in to change notification settings - Fork 42
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
Immutable with Nested #34
Comments
My workaround is to wrap any persistReducer reducers with combineReducers
And a minor tweak to a few state selectors
Maybe this
Should be changed to
|
Just ran into the same issue. Is this the only solution to this? |
@blumendorf I wrote something on the weekends to support top-level-immutable - hope it can be helpful :) |
Hi,
I'm trying to use both immutable state and nested persists (for code splitting)
https://github.com/rt2zz/redux-persist#nested-persists
https://github.com/rt2zz/redux-persist-transform-immutable
Config looks like this:
State tree looks something like this
As per the README, top level state is not an ImmutableMap/Record (its plain object)
What I am finding, with default state, the Immutable Record is getting corrupted during the first PERSIST action dispatch
It looks like it is this line
https://github.com/rt2zz/redux-persist/blob/master/src/persistReducer.js#L66
Starts off as a healthy Immutable Record
Out comes an invalid object (looks like an Immutable List)
The text was updated successfully, but these errors were encountered: