You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this object { contentMap: Map<string, string>} .
I use cloneDeep to clone the object, then try to update the contentMap.
I get this Immer exception: Error: [Immer] This object has been frozen and should not be mutated when doing:
clonedComponent.contentMap.set({...})
I have determined that the cloned object's contentMap is still referencing the original, and I have to declare a new content map and manually set it on the cloned object. The docs suggest this should be supported behavior, so there seems to be a bug
The text was updated successfully, but these errors were encountered:
I have this object
{ contentMap: Map<string, string>}
.I use cloneDeep to clone the object, then try to update the contentMap.
I get this Immer exception: Error: [Immer] This object has been frozen and should not be mutated when doing:
clonedComponent.contentMap.set({...})
I have determined that the cloned object's contentMap is still referencing the original, and I have to declare a new content map and manually set it on the cloned object. The docs suggest this should be supported behavior, so there seems to be a bug
The text was updated successfully, but these errors were encountered: