immerjs / immer

Create the next immutable state by mutating the current one

Home Page:https://immerjs.github.io/immer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does `[immer.immerable] = true` make class instances read-only?

dliebner opened this issue Β· comments

πŸ™‹β€β™‚ Question

I have an array of immerable objects with properties that reference other objects and in part of my code I'm trying to dereference these properties (for garbage collection) by setting their value to undefined but I'm getting a read-only type error when I try to do this. Is this being caused by immer, and is there any way around it?