We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Map
Starting with Immer 10.0.4, enableMapSet() does not seem to work as expected as values (if objects) of a native Map aren't frozen anymore.
enableMapSet()
https://stackblitz.com/edit/immer-10-0-4-map-bug
Create a Map with objects by using produce and check the values of the Map with Object.isFrozen(...).
produce
Object.isFrozen(...)
Objects inside a Map are not frozen.
Objects inside a Map are frozen. The provided repo works if the Immer version is set to 10.0.3.
The text was updated successfully, but these errors were encountered:
Note to self, see also #1069
Sorry, something went wrong.
Thanks for the detailed report, will investigate at a later point.
No branches or pull requests
馃悰 Bug Report
Starting with Immer 10.0.4,
enableMapSet()
does not seem to work as expected as values (if objects) of a nativeMap
aren't frozen anymore.Link to repro
https://stackblitz.com/edit/immer-10-0-4-map-bug
To Reproduce
Create a Map with objects by using
produce
and check the values of the Map withObject.isFrozen(...)
.Observed behavior
Objects inside a Map are not frozen.
Expected behavior
Objects inside a Map are frozen. The provided repo works if the Immer version is set to 10.0.3.
Environment
The text was updated successfully, but these errors were encountered: