Replies: 1 comment
-
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
Uh oh!
There was an error while loading. Please reload this page.
-
I use Next.js with Zod and Server actions for my pet project.
I have 2 layers of validation: client- and server-side (implemented as Zod schemas that are used in useForm and createServerValidate respectively).
Assuming i have a server-side validation error that relates to a certain field, can I pass it to the field level in my form?
Example: checking if the user with the specified email exists in my database
Right now the errors can be retrieved via useStore, however, the fields fo not know about them
Beta Was this translation helpful? Give feedback.
All reactions