-
-
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
Document immer.enableMapSet
requirement
#466
Comments
This was specifically covered in the v1.3.0 release notes:
Note that we specifically advise against putting any non-serializable values in the Redux store, and the serializable check middleware should be logging errors when you do so. And yeah, I already filed an issue against |
My bad. Thanks! |
Hey there,
I YOLO update every Tuesday and was greeted with an error in my
create-react-app
:Likely this is because I use the native
Map
andSet
in my redux store. I attempted to do as the error described, but the method was undefined.To see what packages are using
immer
in my project (and their versions), I usednpm ls
:A few other dependencies are using
immer@1
, so likely I'm getting one of thoseimmer
versions when importing from my source code.How to resolve
To resolve this problem, I added
immer
as a dependency, imported it before usingcombineReducers
Now my dependency tree looks like this:
Success! 😎
I ask that you document this, as I found no references to this in the release notes. I also figured it was worth opening an issue to document how to resolve this behavior for anyone else who comes across this issue.
The text was updated successfully, but these errors were encountered: