Replies: 1 comment
-
I am not sure what the hecks going on, but I managed to solve it by putting .default() from zod on every field. Oh and I am passing RHK's useForm() defaultValues only for the discriminated union initial value. |
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
-
Hello.
I want to use zod with RHK, and I need to pass some default values, they differ quite a bit but it is a discriminated union. Not sure how to approach this... Any insight?
Beta Was this translation helpful? Give feedback.
All reactions