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
Zod's resolver does not support passing useForm's context as to superRefine zod method.
Proposed solution
After reading useForm's documentation I have noticed you can have an optional context object on your form so it then gets passed to the resolver as the second argument.
Unfortunately after debugging this for a while I have noticed that the context gets omitted and it is never sent to Zod's resolver:
The context works perfectly on the useForm resolver:
But the context is never set on the zod resolver:
Additional context
I hope I expressed myself well, otherwise I can explain the problem further.
Thanks!
The text was updated successfully, but these errors were encountered:
Zod's resolver does not support passing useForm's context as to
superRefine
zod method.Proposed solution
After reading useForm's documentation I have noticed you can have an optional
context
object on your form so it then gets passed to the resolver as the second argument.Unfortunately after debugging this for a while I have noticed that the context gets omitted and it is never sent to Zod's resolver:
The context works perfectly on the useForm resolver:
But the context is never set on the zod resolver:
Additional context
I hope I expressed myself well, otherwise I can explain the problem further.
Thanks!
The text was updated successfully, but these errors were encountered: