Zod with zustand #1722
Unanswered
karelnagel
asked this question in
Ideas
Replies: 1 comment
-
Hey 👋. Can I use this for a react native app alongside persist middleware? Was looking for something like this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would you be interested in adding a middleware that checks that the new state is a valid zod type? I just made a example for myself and thought that this might be useful for more people to avoid state corruption.
Example use case: shows error message if trying to create invalid state
Haven't tested this a lot, but let me know what you think.
Beta Was this translation helpful? Give feedback.
All reactions