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 looked more deeply into the issue, and in reality, it is not a bug, but more a current limitation of immer. And it happens with any primitive, not only objects. So I think it can be treated more like a feature request.
Also, is there anything architecturally limiting from achieving this? As far as I can tell, setter that now sets _modified can also reset that flag if the original value was passed again, or am I wrong?
🐛 Bug Report
If you mutate
Date
property insideproduce
but then revert it, immer still assumes changes while returning an empty set of patches.Link to repro
https://codesandbox.io/s/immer-reassigning-breaks-immutabillity-2u7ob
Environment
Immer version: 9.0.6
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: