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
The draft returned by the produce function's callback should make a mutable clone from the original state. Currently immutability is retained:
interfaceIState{readonlyfoo: boolean;}conststate: IState={foo: false};produce(state,draft=>{draft.foo=true;// Error: Cannot assign to 'foo' because it is a constant or a read-only property.});