Replies: 1 comment 5 replies
-
If you are using JS without types, but your editor complains, you want to disable type checking. If you are okay to use TS, https://github.com/pmndrs/zustand#typing-your-store-and-combine-middleware may help. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I installed zustand and pasted the example in the readme into my file, but my editor is telling me that the state setter is of type unknown. As you can see, there are two unknowns in the generic for the method.
Does anyone have any idea what the issue could be?
Beta Was this translation helpful? Give feedback.
All reactions