本页还没有译文
本页 121 段还没译成Русский,下面显示的是英文原文。FormGroupMeta
还没翻译译自英文(tanstack.com)本页 121 段都还没译
Defined in: packages/form-core/src/FormGroupApi.ts:749
The meta shape exposed on FormGroupApi.state.meta. Mirrors
FieldApi.state.meta (since FormGroupMeta extends FieldLikeMeta) but
additionally surfaces the group's submission lifecycle and aggregated
validity flags. All derivation lives on the parent FormApi (in
formGroupMetaDerived), keeping per-instance FormGroupApi.store as
minimal as FieldApi.store.
Aggregated booleans (isTouched, isBlurred, isDirty, isPristine,
isDefaultValue) are computed across the group's descendant fields
rather than the group's own field-meta entry.
Extends
Type Parameters
TParentData
TParentData
TName
TName extends DeepKeys<TParentData>
TData
TData extends DeepValue<TParentData, TName>
TOnMount
TOnMount extends undefined | FormGroupValidateOrFn<TParentData, TName, TData>
TOnChange
TOnChange extends undefined | FormGroupValidateOrFn<TParentData, TName, TData>
TOnChangeAsync
TOnChangeAsync extends
| undefined
| FormGroupAsyncValidateOrFn<TParentData, TName, TData>
TOnBlur
TOnBlur extends undefined | FormGroupValidateOrFn<TParentData, TName, TData>
TOnBlurAsync
TOnBlurAsync extends
| undefined
| FormGroupAsyncValidateOrFn<TParentData, TName, TData>
TOnSubmit
TOnSubmit extends undefined | FormGroupValidateOrFn<TParentData, TName, TData>
TOnSubmitAsync
TOnSubmitAsync extends
| undefined
| FormGroupAsyncValidateOrFn<TParentData, TName, TData>
TOnDynamic
TOnDynamic extends undefined | FormGroupValidateOrFn<TParentData, TName, TData>
TOnDynamicAsync
TOnDynamicAsync extends
| undefined
| FormGroupAsyncValidateOrFn<TParentData, TName, TData>
TFormOnMount
TFormOnMount extends undefined | FormValidateOrFn<TParentData>
TFormOnChange
TFormOnChange extends undefined | FormValidateOrFn<TParentData>
TFormOnChangeAsync
TFormOnChangeAsync extends undefined | FormAsyncValidateOrFn<TParentData>
TFormOnBlur
TFormOnBlur extends undefined | FormValidateOrFn<TParentData>
TFormOnBlurAsync
TFormOnBlurAsync extends undefined | FormAsyncValidateOrFn<TParentData>
TFormOnSubmit
TFormOnSubmit extends undefined | FormValidateOrFn<TParentData>
TFormOnSubmitAsync
TFormOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TParentData>
TFormOnDynamic
TFormOnDynamic extends undefined | FormValidateOrFn<TParentData>
TFormOnDynamicAsync
TFormOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TParentData>
Properties
canSubmit
canSubmit: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:827
errorMap
errorMap: ValidationErrorMap<UnwrapFieldValidateOrFn<TName, TOnMount, TFormOnMount>, UnwrapFieldValidateOrFn<TName, TOnChange, TFormOnChange>, UnwrapFieldAsyncValidateOrFn<TName, TOnChangeAsync, TFormOnChangeAsync>, UnwrapFieldValidateOrFn<TName, TOnBlur, TFormOnBlur>, UnwrapFieldAsyncValidateOrFn<TName, TOnBlurAsync, TFormOnBlurAsync>, UnwrapFieldValidateOrFn<TName, TOnSubmit, TFormOnSubmit>, UnwrapFieldAsyncValidateOrFn<TName, TOnSubmitAsync, TFormOnSubmitAsync>, UnwrapFieldValidateOrFn<TName, TOnDynamic, TFormOnDynamic>, UnwrapFieldAsyncValidateOrFn<TName, TOnDynamicAsync, TFormOnDynamicAsync>>;Defined in: packages/form-core/src/types.ts:536
A map of errors related to the field value.
Inherited from
FieldLikeMeta.errorMaperrors
errors: (
| UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<TName, TOnMount, TFormOnMount>>
| UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<TName, TOnChange, TFormOnChange>>
| UnwrapOneLevelOfArray<UnwrapFieldAsyncValidateOrFn<TName, TOnChangeAsync, TFormOnChangeAsync>>
| UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<TName, TOnBlur, TFormOnBlur>>
| UnwrapOneLevelOfArray<UnwrapFieldAsyncValidateOrFn<TName, TOnBlurAsync, TFormOnBlurAsync>>
| UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<TName, TOnSubmit, TFormOnSubmit>>
| UnwrapOneLevelOfArray<UnwrapFieldAsyncValidateOrFn<TName, TOnSubmitAsync, TFormOnSubmitAsync>>
| UnwrapOneLevelOfArray<UnwrapFieldValidateOrFn<TName, TOnDynamic, TFormOnDynamic>>
| UnwrapOneLevelOfArray<UnwrapFieldAsyncValidateOrFn<TName, TOnDynamicAsync, TFormOnDynamicAsync>>)[];Defined in: packages/form-core/src/types.ts:660
An array of errors related to the field value.
Inherited from
FieldLikeMeta.errorsisBlurred
isBlurred: boolean;Defined in: packages/form-core/src/types.ts:528
A flag indicating whether the field has been blurred.
Inherited from
FieldLikeMeta.isBlurredisDefaultValue
isDefaultValue: boolean;Defined in: packages/form-core/src/types.ts:704
A flag indicating whether the field's current value is the default value
Inherited from
FieldLikeMeta.isDefaultValueisDirty
isDirty: boolean;Defined in: packages/form-core/src/types.ts:532
A flag that is true if the field's value has been modified by the user. Opposite of isPristine.
Inherited from
FieldLikeMeta.isDirtyisFieldsValid
isFieldsValid: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:824
isFieldsValidating
isFieldsValidating: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:823
isGroupValid
isGroupValid: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:825
isPristine
isPristine: boolean;Defined in: packages/form-core/src/types.ts:696
A flag that is true if the field's value has not been modified by the user. Opposite of isDirty.
Inherited from
FieldLikeMeta.isPristineisSubmitSuccessful
isSubmitSuccessful: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:688
A boolean indicating if the last submission was successful.
Inherited from
FormGroupState.isSubmitSuccessful
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.
Inherited from
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.
Inherited from
isTouched
isTouched: boolean;Defined in: packages/form-core/src/types.ts:524
A flag indicating whether the field has been touched.
Inherited from
FieldLikeMeta.isTouchedisValid
isValid: boolean;Defined in: packages/form-core/src/FormGroupApi.ts:826
A boolean indicating if the field is valid. Evaluates true if there are no field errors.
Overrides
FieldLikeMeta.isValidisValidating
isValidating: boolean;Defined in: packages/form-core/src/types.ts:555
A flag indicating whether the field is currently being validated.
Inherited from
submissionAttempts
submissionAttempts: number;Defined in: packages/form-core/src/FormGroupApi.ts:684
A counter for tracking the number of submission attempts.