本页还没有译文
本页 26 段还没译成Deutsch,下面显示的是英文原文。FormGroupState
还没翻译译自英文(tanstack.com)本页 26 段都还没译
Defined in: packages/form-core/src/FormGroupApi.ts:655
Extended by
Properties
isSubmitSuccessful
isSubmitSuccessful: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:688
A boolean indicating if the last submission was successful.
isSubmitted
isSubmitted: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:676
A boolean indicating if the onSubmit function has completed successfully.
Goes back to false at each new submission attempt.
Note: you can use isSubmitting to check if the form is currently submitting.
isSubmitting
isSubmitting: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:668
A boolean indicating if the form is currently in the process of being submitted after handleSubmit is called.
Goes back to false when submission completes for one of the following reasons:
- the validation step returned errors.
- the
onSubmitfunction has completed.
Note: if you're running async operations in your onSubmit function make sure to await them to ensure isSubmitting is set to false only when the async operation completes.
This is useful for displaying loading indicators or disabling form inputs during submission.
isValidating
isValidating: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:680
A boolean indicating if the form or any of its fields are currently validating.
submissionAttempts
submissionAttempts: number;Defined in: packages/form-core/src/FormGroupApi.ts:684
A counter for tracking the number of submission attempts.