type DerivedFormState<TFormData>: object;
type DerivedFormState<TFormData>: object;
• TFormData
canSubmit: boolean;
canSubmit: boolean;
A boolean indicating if the form can be submitted based on its current state.
errors: ValidationError[];
errors: ValidationError[];
The error array for the form itself.
fieldMeta: Record<DeepKeys<TFormData>, FieldMeta>;
fieldMeta: Record<DeepKeys<TFormData>, FieldMeta>;
A record of field metadata for each field in the form.
isBlurred: boolean;
isBlurred: boolean;
A boolean indicating if any of the form fields have been blurred.
isDirty: boolean;
isDirty: boolean;
A boolean indicating if any of the form's fields' values have been modified by the user. True if the user have modified at least one of the fields. Opposite of isPristine.
isFieldsValid: boolean;
isFieldsValid: boolean;
A boolean indicating if all the form fields are valid.
isFieldsValidating: boolean;
isFieldsValidating: boolean;
A boolean indicating if any of the form fields are currently validating.
isFormValid: boolean;
isFormValid: boolean;
A boolean indicating if the form is valid.
isFormValidating: boolean;
isFormValidating: boolean;
A boolean indicating if the form is currently validating.
isPristine: boolean;
isPristine: boolean;
A boolean indicating if none of the form's fields' values have been modified by the user. True if the user have not modified any of the fields. Opposite of isDirty.
isTouched: boolean;
isTouched: boolean;
A boolean indicating if any of the form fields have been touched.
isValid: boolean;
isValid: boolean;
A boolean indicating if the form and all its fields are valid.
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.