Closed lovelope closed 5 years ago
You need to return newSet
instead of draft = newSet
.
Note: If that's all you're using produce
for, you don't need produce
.
You need to
return newSet
instead ofdraft = newSet
.Note: If that's all you're using
produce
for, you don't needproduce
.
Thanks. It`s worked. I use it because the real business scenario is more complicated.
🐛 Bug Report
I inited a Set and produce it, but it`s value never changed.
To Reproduce
Expected behavior
I expect the set`s value changed.
Link to repro (highly encouraged)
CodeSandbox demo
Environment
setUseProxies(true)
setUseProxies(false)
(ES5 only)