We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The component doesn't support new root.* error type, eg name="root.serverError"
root.*
name="root.serverError"
Type '"root.serverError"' is not assignable to type FormData
The text was updated successfully, but these errors were encountered:
I ran into the same issue today.
In my case I set a custom error that got returned from the server after submitting a form:
setError("root.failure", { type: data.failure.reason, });
I expected the following code to display the error message for root.failure, but it didn't:
root.failure
<ErrorMessage errors={errors} name="root.failure" />
Instead, not using ErrorMessage component in this case worked:
ErrorMessage
<p>{errors.root?.failure?.type}</p>
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
The component doesn't support new
root.*
error type, egname="root.serverError"
The text was updated successfully, but these errors were encountered: