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 think it's related to how Proxy.revocable() works (see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/revocable).
You can use enableES5(true), and setUseProxies(false) as work around. But I guess the bug related to revoke() to be called too early (means it's need to be called after all drafts finished, but I don't think it will solve all this kind of these issues).
🐛 Bug Report
An error occurs when nesting patches and changing the level of [tree structure data]
Link to repro
https://codesandbox.io/s/minimal-repro-forked-xvb93p
To Reproduce
1.remove a node
2.Add a new node where it was previously removed
3.Add previously deleted nodes to a subset of new nodes
Observed behavior
An error occurs when using nextData
Expected behavior
should not go wrong
Environment
immer verson :9.0.12
Use default configuration
The text was updated successfully, but these errors were encountered: