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
Run the sandbox or put a draft into an object that is to be drafted with.
Observed behavior
Changes are only recorded with setUseProxies(false). It seems that otherwise a proxy is created for the draft so that no mutating operations get through to it.
Expected behavior
The behavior of setUseProxies(true) should changed.
Environment
Immer version: 6.0.3
Occurs with setUseProxies(true)
Occurs with setUseProxies(false) (ES5 only)
The text was updated successfully, but these errors were encountered:
🐛 Bug Report
Changes to a draft that is a child of another draft will not be recorded if proxies are used.
Link to repro
https://codesandbox.io/s/immer-sandbox-cge23
To Reproduce
Run the sandbox or put a draft into an object that is to be drafted with.
Observed behavior
Changes are only recorded with
setUseProxies(false)
. It seems that otherwise a proxy is created for the draft so that no mutating operations get through to it.Expected behavior
The behavior of
setUseProxies(true)
should changed.Environment
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: