Defined in: FormApi/formSubmit.public.ts:281
Identifies why a form or form-group submission failed and lets onSubmitInvalid suppress its exception.
error: unknown;Defined in: FormApi/formSubmit.public.ts:308
The exception from validation or onSubmit. Always undefined when reason is validation.
An exception can also be undefined; check reason to distinguish the cases.
preventThrow: () => void;Defined in: FormApi/formSubmit.public.ts:322
Prevents this submission's exception from rejecting handleSubmit().
Call during onSubmitInvalid, before it returns or its returned promise settles. Has no effect when reason is validation.
The submission remains unsuccessful. handleSubmit() resolves with any collected validation errors, or an empty array.
void
Important: This does not suppress exceptions thrown or rejected by onSubmitInvalid itself.
reason: "exception" | "validation";Defined in: FormApi/formSubmit.public.ts:295
How submission failed:
signal: AbortSignal;Defined in: FormApi/formSubmit.public.ts:289
The same signal passed to this attempt's onSubmit, if it ran.
Aborted when the attempt is superseded or invalidated by reset, unmount, or server-state replacement. A running callback is still awaited. An aborted signal does not change reason or automatically suppress exceptions.
source: "onSubmit" | "validators";Defined in: FormApi/formSubmit.public.ts:301
Where submission failed: