Type hints lost when using immer middleware (v5.0.0) #2819
Unanswered
yuri2peter
asked this question in
Bug report
Replies: 1 comment 2 replies
-
Is it related with #2696? Can @chrisvander take a look please? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
I'm experiencing a type inference issue when using the immer middleware with Zustand v5.0.0. When using the middleware, the type of the draft object is inferred as any, leading to type errors.
This issue doesn't occur when using Zustand v4.x.
Reproduction Link
https://stackblitz.com/edit/stackblitz-starters-xysert?file=app%2Ftest.ts&view=editor
Beta Was this translation helpful? Give feedback.
All reactions