defaultOnSubmissionError
Overview
Default implementation for onSubmissionError hook.
Signature
defaultOnSubmissionError(options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| options | object | yes |
options Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| error | Error | The error that occurred. | ||
| formContext | FormContext | The form context. | ||
| state | object | The form state. | ||
| toast | (message: titleT, data: ExternalToast) => string | number & object & object | The toast service. |
Returns
Promise
- True if the error is a recognized, ingestible form error and has been handled (rendered into field/toast feedback). False if it should instead surface as the form's visible save-failure error (e.g. a permission refusal, server failure, or network failure).
Source
client/lib/use/useObjectForm.js:167