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
If for any reason the userId is not present in the params, the mutation will not succeed but formAction will not return an error for the missing userId.
It would be nice if we could show them as global errors and give feedback to the developer that something is off with the wiring between Form and action. Right now, the form submission will not succeed but no error will be shown.
I'm looking for a generic way to implement this as a convention in Remix Forms: whenever we have an inputError for a field that's not part of the form schema, we make it a global error.
The text was updated successfully, but these errors were encountered:
Let's say we're updating a user at
/users/$userId/edit
:If for any reason the
userId
is not present in the params, themutation
will not succeed butformAction
will not return an error for the missing userId.It would be nice if we could show them as global errors and give feedback to the developer that something is off with the wiring between Form and action. Right now, the form submission will not succeed but no error will be shown.
I'm looking for a generic way to implement this as a convention in Remix Forms: whenever we have an
inputError
for a field that's not part of the form schema, we make it a global error.The text was updated successfully, but these errors were encountered: