Defined in: packages/form-core/src/FormApi.ts:718
An object representing the current state of the form.
TFormData
TOnMount extends undefined | FormValidateOrFn<TFormData>
TOnChange extends undefined | FormValidateOrFn<TFormData>
TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnBlur extends undefined | FormValidateOrFn<TFormData>
TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnSubmit extends undefined | FormValidateOrFn<TFormData>
TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnDynamic extends undefined | FormValidateOrFn<TFormData>
TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>
TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>
optional _force_re_eval: boolean;optional _force_re_eval: boolean;Defined in: packages/form-core/src/FormApi.ts:623
@private, used to force a re-evaluation of the form state when options change
BaseFormState._force_re_evalBaseFormState._force_re_evalcanSubmit: boolean;canSubmit: boolean;Defined in: packages/form-core/src/FormApi.ts:711
A boolean indicating if the form can be submitted based on its current state.
DerivedFormState.canSubmitDerivedFormState.canSubmiterrorMap: ValidationErrorMap<UnwrapFormValidateOrFn<TOnMount>, UnwrapFormValidateOrFn<TOnChange>, UnwrapFormAsyncValidateOrFn<TOnChangeAsync>, UnwrapFormValidateOrFn<TOnBlur>, UnwrapFormAsyncValidateOrFn<TOnBlurAsync>, UnwrapFormValidateOrFn<TOnSubmit>, UnwrapFormAsyncValidateOrFn<TOnSubmitAsync>, UnwrapFormValidateOrFn<TOnDynamic>, UnwrapFormAsyncValidateOrFn<TOnDynamicAsync>, UnwrapFormAsyncValidateOrFn<TOnServer>>;errorMap: ValidationErrorMap<UnwrapFormValidateOrFn<TOnMount>, UnwrapFormValidateOrFn<TOnChange>, UnwrapFormAsyncValidateOrFn<TOnChangeAsync>, UnwrapFormValidateOrFn<TOnBlur>, UnwrapFormAsyncValidateOrFn<TOnBlurAsync>, UnwrapFormValidateOrFn<TOnSubmit>, UnwrapFormAsyncValidateOrFn<TOnSubmitAsync>, UnwrapFormValidateOrFn<TOnDynamic>, UnwrapFormAsyncValidateOrFn<TOnDynamicAsync>, UnwrapFormAsyncValidateOrFn<TOnServer>>;Defined in: packages/form-core/src/FormApi.ts:567
The error map for the form itself.
BaseFormState.errorMapBaseFormState.errorMaperrors: (
| UnwrapFormValidateOrFn<TOnMount>
| UnwrapFormValidateOrFn<TOnChange>
| UnwrapFormAsyncValidateOrFn<TOnChangeAsync>
| UnwrapFormValidateOrFn<TOnBlur>
| UnwrapFormAsyncValidateOrFn<TOnBlurAsync>
| UnwrapFormValidateOrFn<TOnSubmit>
| UnwrapFormAsyncValidateOrFn<TOnSubmitAsync>
| UnwrapFormValidateOrFn<TOnDynamic>
| UnwrapFormAsyncValidateOrFn<TOnDynamicAsync>
| UnwrapFormAsyncValidateOrFn<TOnServer>)[];errors: (
| UnwrapFormValidateOrFn<TOnMount>
| UnwrapFormValidateOrFn<TOnChange>
| UnwrapFormAsyncValidateOrFn<TOnChangeAsync>
| UnwrapFormValidateOrFn<TOnBlur>
| UnwrapFormAsyncValidateOrFn<TOnBlurAsync>
| UnwrapFormValidateOrFn<TOnSubmit>
| UnwrapFormAsyncValidateOrFn<TOnSubmitAsync>
| UnwrapFormValidateOrFn<TOnDynamic>
| UnwrapFormAsyncValidateOrFn<TOnDynamicAsync>
| UnwrapFormAsyncValidateOrFn<TOnServer>)[];Defined in: packages/form-core/src/FormApi.ts:664
The error array for the form itself.
DerivedFormState.errorsDerivedFormState.errorsfieldMeta: Partial<Record<DeepKeys<TFormData>, AnyFieldMeta>>;fieldMeta: Partial<Record<DeepKeys<TFormData>, AnyFieldMeta>>;Defined in: packages/form-core/src/FormApi.ts:715
A record of field metadata for each field in the form.
DerivedFormState.fieldMetaDerivedFormState.fieldMetafieldMetaBase: Partial<Record<DeepKeys<TFormData>, AnyFieldMetaBase>>;fieldMetaBase: Partial<Record<DeepKeys<TFormData>, AnyFieldMetaBase>>;Defined in: packages/form-core/src/FormApi.ts:586
A record of field metadata for each field in the form, not including the derived properties, like errors and such
BaseFormState.fieldMetaBaseBaseFormState.fieldMetaBaseisBlurred: boolean;isBlurred: boolean;Defined in: packages/form-core/src/FormApi.ts:691
A boolean indicating if any of the form fields have been blurred.
DerivedFormState.isBlurredDerivedFormState.isBlurredisDefaultValue: boolean;isDefaultValue: boolean;Defined in: packages/form-core/src/FormApi.ts:703
A boolean indicating if all of the form's fields are the same as default values.
DerivedFormState.isDefaultValueDerivedFormState.isDefaultValueisDirty: boolean;isDirty: boolean;Defined in: packages/form-core/src/FormApi.ts:695
A boolean indicating if any of the form's fields' values have been modified by the user. Evaluates true if the user have modified at least one of the fields. Opposite of isPristine.
DerivedFormState.isDirtyDerivedFormState.isDirtyisFieldsValid: boolean;isFieldsValid: boolean;Defined in: packages/form-core/src/FormApi.ts:683
A boolean indicating if all the form fields are valid. Evaluates true if there are no field errors.
DerivedFormState.isFieldsValidDerivedFormState.isFieldsValidisFieldsValidating: boolean;isFieldsValidating: boolean;Defined in: packages/form-core/src/FormApi.ts:679
A boolean indicating if any of the form fields are currently validating.
DerivedFormState.isFieldsValidatingDerivedFormState.isFieldsValidatingisFormValid: boolean;isFormValid: boolean;Defined in: packages/form-core/src/FormApi.ts:660
A boolean indicating if the form is valid.
DerivedFormState.isFormValidDerivedFormState.isFormValidisFormValidating: boolean;isFormValidating: boolean;Defined in: packages/form-core/src/FormApi.ts:656
A boolean indicating if the form is currently validating.
DerivedFormState.isFormValidatingDerivedFormState.isFormValidatingisPristine: boolean;isPristine: boolean;Defined in: packages/form-core/src/FormApi.ts:699
A boolean indicating if none of the form's fields' values have been modified by the user. Evaluates true if the user have not modified any of the fields. Opposite of isDirty.
DerivedFormState.isPristineDerivedFormState.isPristineisSubmitSuccessful: boolean;isSubmitSuccessful: boolean;Defined in: packages/form-core/src/FormApi.ts:619
A boolean indicating if the last submission was successful.
BaseFormState.isSubmitSuccessfulBaseFormState.isSubmitSuccessfulisSubmitted: boolean;isSubmitted: boolean;Defined in: packages/form-core/src/FormApi.ts:607
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.
BaseFormState.isSubmittedBaseFormState.isSubmittedisSubmitting: boolean;isSubmitting: boolean;Defined in: packages/form-core/src/FormApi.ts:599
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:
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.
BaseFormState.isSubmittingBaseFormState.isSubmittingisTouched: boolean;isTouched: boolean;Defined in: packages/form-core/src/FormApi.ts:687
A boolean indicating if any of the form fields have been touched.
DerivedFormState.isTouchedDerivedFormState.isTouchedisValid: boolean;isValid: boolean;Defined in: packages/form-core/src/FormApi.ts:707
A boolean indicating if the form and all its fields are valid. Evaluates true if there are no errors.
DerivedFormState.isValidDerivedFormState.isValidisValidating: boolean;isValidating: boolean;Defined in: packages/form-core/src/FormApi.ts:611
A boolean indicating if the form or any of its fields are currently validating.
BaseFormState.isValidatingBaseFormState.isValidatingsubmissionAttempts: number;submissionAttempts: number;Defined in: packages/form-core/src/FormApi.ts:615
A counter for tracking the number of submission attempts.
BaseFormState.submissionAttemptsBaseFormState.submissionAttemptsvalidationMetaMap: Record<ValidationErrorMapKeys, ValidationMeta | undefined>;validationMetaMap: Record<ValidationErrorMapKeys, ValidationMeta | undefined>;Defined in: packages/form-core/src/FormApi.ts:582
An internal mechanism used for keeping track of validation logic in a form.
BaseFormState.validationMetaMapBaseFormState.validationMetaMapvalues: TFormData;values: TFormData;Defined in: packages/form-core/src/FormApi.ts:563
The current values of the form fields.
BaseFormState.valuesBaseFormState.values