type HandleSubmitFn<TFormData> = () => Promise<FormattedValidationError<TFormData>[]>;Defined in: FormApi/FormApi.public.ts:187
Validates the form and calls onSubmit when validation succeeds.
TFormData
Library-managed. Do not specify explicitly.
Promise<FormattedValidationError<TFormData>[]>
A promise resolving to a flat array of issues and error maps from field and form validation, plus validation errors returned by onSubmit. Strings become issue objects. The array is empty if no errors are produced.
Important: An empty error array does not guarantee a successful submission. Supersession, reset, unmount, or server-state replacement aborts the attempt's signal and pending validation. Cancellation before callbacks start resolves with []. Callbacks that already started are still awaited, but their results cannot update form state after cancellation.