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've read through #100 and #225 but I'm still not sure whether what I'm looking for is supposed to work or not. So this may not be a bug report at all, just a request for clarification.
That is only if the draft is unmodified, no? In other words, just return reducer(draft, { ... }) would work, but draft.counter *= 2; return reducer(draft, { ... }) wouldn't.
馃悰 Bug Report
I've read through #100 and #225 but I'm still not sure whether what I'm looking for is supposed to work or not. So this may not be a bug report at all, just a request for clarification.
Given the following:
I would expect the last line to print
5
, instead it prints4
.It's easy enough to work around it with a manual check to see if the passed state is already a draft, in which case I skip
produce
, like this:Link to repro
https://codesandbox.io/s/m506x7pwx8
Environment
setUseProxies(true)
setUseProxies(false)
(ES5 only)The text was updated successfully, but these errors were encountered: