3 ms·
> When we change the name of our functional object by copying it and refreezing, we will not change the functions inside the object. All those functions will st
by mchahn 11y ago
> When we change the name of our functional object by copying it and refreezing, we will not change the functions inside the object. All those functions will still only have access to the old version of the object through reference.
That is why I use deep-freeze. I also have a mutate/copy function that only changes from the changed property up to the root. Everything that can stay frozen as the original object will stay frozen.