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
Is there a way to set errors manually, specifically for when we get them after submitting form?
Usecase:
form validation passes
mutation runs, server responds with Conflict, e.g. username is already in use
show the error under username field
If not currently possible, would it be possible to implement (how complicated?).
What I have in mind is something like this
typeServerError={field: string;errorMessage: string};constserverErrors: ServerError[]=[{field: "username",errorMessage: "This username is already in use. Please choose another",},];<ZodForm// if undefined or empty, ignoreserverErrors={serverErrors}.../>
The text was updated successfully, but these errors were encountered:
Is there a way to set errors manually, specifically for when we get them after submitting form?
Usecase:
username
is already in useusername
fieldIf not currently possible, would it be possible to implement (how complicated?).
What I have in mind is something like this
The text was updated successfully, but these errors were encountered: