Redux-persist: Nested persisted reducers does not work with Immutable

Created on 5 Oct 2018  路  8Comments  路  Source: rt2zz/redux-persist

There is an issue with nested persistant reducers with Immutable due to object being frozen.

Uncaught (in promise) TypeError: Cannot add property _persist, object is not extensible

if (newState === restState) return state;else {
      newState._persist = _persist;
      return conditionalUpdate(newState);
    }

Any ideas on how to address this?

Most helpful comment

I am also seeing this without using immutable, just using hardSet.

All 8 comments

I am also seeing this without using immutable, just using hardSet.

I get the following inside the fields args and caller of the register inside the persist/PERSIST action:

Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (<anonymous>:2:14)

I had to blacklist the reducers using ImmutableJS

@mariogillazaro I find myself in the same situation. Mind explaining how you fixed it?
Thank you

Any idea how to fix this issue?
I even remove ImmutableJS, and I got this error
Attempted to assign to readonly property.

Should be already resolved with this commit, 13 days ago

Will this be available in npm installable version or just from this repo?

Waiting on new release, tracking new release in #980.

Is there a roadmap or a schedule when the new release will be pushed to npm, even in alpha, because of this still a big issue in dealing with the state?

Was this page helpful?
0 / 5 - 0 ratings