-
-
Notifications
You must be signed in to change notification settings - Fork 852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spread in nested function call produces empty data #346
Comments
Weird. Fancy. Sounds like a potential V8 bug... |
I've created a minimal reproduction, the issue is unrelated to immer: https://codesandbox.io/s/94lp5j3nm4 It seems to be an issue with v8 version 7.3, However, in later versions v8 v 7.5 (chrome 75), the bug seems to be fixed. I'll try to find the original issue to cross link |
fyi, it's working fine in Chrome 74.0.3729.131 |
Curious, did anyone figure out what was up with chrome 73 to cause this? We were recently bit by this, where a user on chrome 73 had mysterious issues with data not being stored to redux correctly. Which I'm pretty sure is the same problem here with the spread returning empty data. Either way, doesn't matter, we don't officially support that old of a version of chrome so they can upgrade, but I'm wondering if anyone dug deeper into this to see. Like, was there an official bug report by chromium or something? That sort of thing. |
🐛 Bug Report
When I use produce multiple times with a spread operator in a nested function call it results in an empty object instead of a shallow copy of the object.
setUseProxies(true)
but it works there ¯\(ツ)/¯update
function) it works fine as wellTo Reproduce
Expected behavior
The second console log should result in
{id: "item-id", value: 2}}
Link to repro (highly encouraged)
https://codesandbox.io/s/k35j5jkj37
Environment
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: