FormCallbacktype
( data: T, event: SubmitEvent<HTMLFormElement>, ) => ReactNode | void | PromiseLike<ReactNode | void>
| Type | |
|---|---|
SubmitEvent | |
HTMLFormElement | |
ReactNode | |
PromiseLike |
Callback invoked when a Form is submitted with its validated data.
- Returned value (if defined) is notified to the user using
notifySuccess(). - Thrown value is notified to the user using
notifyError().