Skip to content
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 operator inside nested produce() doesn't work #524

Closed
1 of 2 tasks
Hagihara-A opened this issue Feb 2, 2020 · 1 comment
Closed
1 of 2 tasks

Spread operator inside nested produce() doesn't work #524

Hagihara-A opened this issue Feb 2, 2020 · 1 comment

Comments

@Hagihara-A
Copy link

🐛 Bug Report

Spread operator inside nested produce doesn't work.
The object inside spreaded object seems to be null.
Actually, in my browser's console displays Proxy object instead of null (79.0.3945.130 Ubuntu)

Link to repro

https://codesandbox.io/s/wispy-dust-2uki1?fontsize=14&hidenavigation=1&theme=dark

Expected behavior

above example , I expect

   level1: {
     level2: {
       level3: "data";
     }
   }
 }  

Environment

browser chrome (79.0.3945.130 Ubuntu)

  • Immer version:
  • Occurs with setUseProxies(true)
  • Occurs with setUseProxies(false) (ES5 only)

#346 seems to have solved in not nested situation.
I'm not sure whether this is a bug or simply my mistake...I'm so sorry if latter.

@mweststrate
Copy link
Collaborator

Thanks for the report! Will be fixed in upcoming 5.3.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants