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 default behavior of Immer is to freeze any objects it creates a copy of. Before v1.10.3, you were making an invalid assumption that errorMsg would be mutable outside of the producer.
Is there a reason you're not using fully immutable data structures?
After updating Immer to version 1.10.4. I'm running into a couple of typing errors on typescript.
example code:
Expected behaviour:
newState
has type:ConditionHandlerOutput
Observed behavior:
newState
hasn't the expected type and given type is not comparable. Returned typ is:The text was updated successfully, but these errors were encountered: