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
{{ message }}
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
I guess this doesn't work out-of-the-box with FormData (as zod doesn't really have a built-in way to work with FormData)?
Also, if it did and I wanted to create a regular form with a server action that posts the form data via Next.js, would there ever be a way to catch validation errors and display those cleanly within your form? Currently the docs suggest you can end that scenario only with redirect, revalidatePath and revalidateTag.
I know you can do this:
<formonSubmit={async(e)=>{e.preventDefault();constmyData= ...
constresponse=awaitmyServerAction(myData);// Deal with validation errors here}}
but then we're spaghetticoding again, which the whole action={myServerAction} is trying to solve...