-
Notifications
You must be signed in to change notification settings - Fork 21
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
"Maximum call stack size exceeded." triggered by version 0.0.18 [iOS] #20
Comments
how does your state look like? could you provide a reproducible example? i can only test with android devices |
I think this happen when there are cyclic dependencies in redux store |
We finally managed to track the issue down on RN 0.57.5 . Reverting to 0.0.17 fixes the problem. |
@sibelius we are using redux-persist-transform-filter exactly to eliminate objects that cannot be serialized. Disabling the redux-persist-transform-filter functionality in the app produces exactly errors specific to trying to serialize non-serializable objects with redux-persist. |
The issue on lodash was closed as it was the intended behaviour:
With this in mind, alternatives to commit baddb0597eab5ded23f08d9d88111929b45dc693 should be considered because we can't really have production apps that may crash at any time... |
What about just using |
I'll try it out tomorrow and come back with the results. |
@edy unfortunately it doesn't work, error thrown is: JSON.stringify cannot serialize cyclic structures Looked into the code for blacklisting a little more and looks like we should filter out blacklisted properties before creating a deepclone? |
yeah, i think that would be the best solution. the thing is, i didn't want to manipulate the state directly, so I deepcloned it. |
Platform: iOS only; [Android is OK]
We've just upgraded to redux-persist-transform-filter: 0.0.18 and the following error is thrown.
Unfortunately, the call stack isn't very useful.
The text was updated successfully, but these errors were encountered: