Showing Server Action errors in the client form after serverValidate #917
Unanswered
nihilum-labs
asked this question in
Q&A
Replies: 0 comments
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 this example https://tanstack.com/form/latest/docs/framework/react/examples/next-server-actions. How best to show the error that occurs already in the server action, after await serverValidate(formData);
Here's how to show it in the client form?
(I came up with it only directly through state, i.e. {state?.errors?.[0]}
And through
I can't do it. How to do it better? thank you
Beta Was this translation helpful? Give feedback.
All reactions