Preventing action from throwing error due to zod schema?
I have trpc creating server actions, fronted by a zod form data schema.
I don't want this to throw an error, I want to return errors to the frontend form (
useActionState
) so it can render what the errors are. Is there a good way to do this?1 Reply
the reason to use server actions is the form can be progressively enhanced and work without javascript