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
Describe the bug Immer auto freeze is suppressing issues related to react state object refs that should be immutable and readonly being edited. This came up in @msnyder-msft's behavior form dirty state refactor. Bugs related to linked object refs being edited, when they were thought to be cloned came up.
In order to fix these issues, we'll need to remove setAutoFreeze(false); in StandalonePropertyInspector.state.ts. This throws errors when any immutable state passed through produce is edited elsewhere (likely many places in our code base).
The text was updated successfully, but these errors were encountered:
Describe the bug
Immer auto freeze is suppressing issues related to react state object refs that should be immutable and readonly being edited. This came up in @msnyder-msft's behavior form dirty state refactor. Bugs related to linked object refs being edited, when they were thought to be cloned came up.
In order to fix these issues, we'll need to remove
setAutoFreeze(false);
inStandalonePropertyInspector.state.ts
. This throws errors when any immutable state passed through produce is edited elsewhere (likely many places in our code base).The text was updated successfully, but these errors were encountered: