DerivedFormState

Type Alias: DerivedFormState<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer>

ts
type DerivedFormState<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer> = object;
type DerivedFormState<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnDynamic, TOnDynamicAsync, TOnServer> = object;

Defined in: packages/form-core/src/FormApi.ts:661

Extended by

Type Parameters

TFormData

TFormData

TOnMount

TOnMount extends undefined | FormValidateOrFn<TFormData>

TOnChange

TOnChange extends undefined | FormValidateOrFn<TFormData>

TOnChangeAsync

TOnChangeAsync extends undefined | FormAsyncValidateOrFn<TFormData>

TOnBlur

TOnBlur extends undefined | FormValidateOrFn<TFormData>

TOnBlurAsync

TOnBlurAsync extends undefined | FormAsyncValidateOrFn<TFormData>

TOnSubmit

TOnSubmit extends undefined | FormValidateOrFn<TFormData>

TOnSubmitAsync

TOnSubmitAsync extends undefined | FormAsyncValidateOrFn<TFormData>

TOnDynamic

TOnDynamic extends undefined | FormValidateOrFn<TFormData>

TOnDynamicAsync

TOnDynamicAsync extends undefined | FormAsyncValidateOrFn<TFormData>

TOnServer

TOnServer extends undefined | FormAsyncValidateOrFn<TFormData>

Properties

canSubmit

ts
canSubmit: boolean;
canSubmit: boolean;

Defined in: packages/form-core/src/FormApi.ts:732

A boolean indicating if the form can be submitted based on its current state.


errors

ts
errors: (
  | 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:685

The error array for the form itself.


fieldMeta

ts
fieldMeta: Partial<Record<DeepKeys<TFormData>, AnyFieldMeta>>;
fieldMeta: Partial<Record<DeepKeys<TFormData>, AnyFieldMeta>>;

Defined in: packages/form-core/src/FormApi.ts:736

A record of field metadata for each field in the form.


isBlurred

ts
isBlurred: boolean;
isBlurred: boolean;

Defined in: packages/form-core/src/FormApi.ts:712

A boolean indicating if any of the form fields have been blurred.


isDefaultValue

ts
isDefaultValue: boolean;
isDefaultValue: boolean;

Defined in: packages/form-core/src/FormApi.ts:724

A boolean indicating if all of the form's fields are the same as default values.


isDirty

ts
isDirty: boolean;
isDirty: boolean;

Defined in: packages/form-core/src/FormApi.ts:716

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.


isFieldsValid

ts
isFieldsValid: boolean;
isFieldsValid: boolean;

Defined in: packages/form-core/src/FormApi.ts:704

A boolean indicating if all the form fields are valid. Evaluates true if there are no field errors.


isFieldsValidating

ts
isFieldsValidating: boolean;
isFieldsValidating: boolean;

Defined in: packages/form-core/src/FormApi.ts:700

A boolean indicating if any of the form fields are currently validating.


isFormValid

ts
isFormValid: boolean;
isFormValid: boolean;

Defined in: packages/form-core/src/FormApi.ts:681

A boolean indicating if the form is valid.


isFormValidating

ts
isFormValidating: boolean;
isFormValidating: boolean;

Defined in: packages/form-core/src/FormApi.ts:677

A boolean indicating if the form is currently validating.


isPristine

ts
isPristine: boolean;
isPristine: boolean;

Defined in: packages/form-core/src/FormApi.ts:720

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.


isTouched

ts
isTouched: boolean;
isTouched: boolean;

Defined in: packages/form-core/src/FormApi.ts:708

A boolean indicating if any of the form fields have been touched.


isValid

ts
isValid: boolean;
isValid: boolean;

Defined in: packages/form-core/src/FormApi.ts:728

A boolean indicating if the form and all its fields are valid. Evaluates true if there are no errors.