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
Do I understand this prevents immer from creating sparse arrays with delete? I've spent the evening slowly removing pieces of my stack and API calls trying to find issues with sparse indices. I have no trouble creating sparse arrays using "proxied mutation"
Be careful using the stackblitz console to test the reproduction results. It runs a parser on the input data which casts holes to undefined. Opening the browser's devtools reveals the proper output (no undefined values).
🐛 Bug Report
immer v9.0.7
just delete an element in the array, it is not difficult to reproduce the bug, please take a look at the following demo or code.
Link to repro
demo
To Reproduce
Observed behavior
As described above, patches and inversePatches are all empty
Expected behavior
They should not be empty.
Environment
We only accept bug reports against the latest Immer version.
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: