Skip to content

How can I work with Zod? #437

Answered by amannn
Pkcarreno asked this question in Q&A
Aug 1, 2023 · 5 comments · 10 replies
Discussion options

You must be logged in to vote

I've just added a section on Server Actions to the next-intl docs. There's also an example of how Zod can be used for parsing incoming form data, hope this helps!

A side note for react-hook-form users: zodResolver seems to accept a second argument (schemaOptions) that can be used to provide the errorMap as shown in the Server Actions example in the docs.

Replies: 5 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@Dosbodoke
Comment options

@Dosbodoke
Comment options

@Pkcarreno
Comment options

@Dosbodoke
Comment options

@Pkcarreno
Comment options

Comment options

You must be logged in to vote
1 reply
@Pkcarreno
Comment options

Answer selected by Pkcarreno
Comment options

You must be logged in to vote
1 reply
@elie-laloum
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@amannn
Comment options

@YHADJRABIA
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants