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 was trying to use the useImmer and pass the immer producer function, but it seems that the strict type is not being properly propagated to the draft argument object.
As we can see here, draft is being evaluated as Draft<S>, and accepts anything without throwing a type error.
If I pass the object directly, it works fine:
Am I missing something?
Thank you
The text was updated successfully, but these errors were encountered:
Hey there,
I was trying to use the useImmer and pass the immer producer function, but it seems that the strict type is not being properly propagated to the
draft
argument object.As we can see here,
draft
is being evaluated asDraft<S>
, and accepts anything without throwing a type error.If I pass the object directly, it works fine:
Am I missing something?
Thank you
The text was updated successfully, but these errors were encountered: