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 should be marked as handled. Otherwise it may be displayed.
Source
client/lib/use/useObjectForm.js:156