Skip to content
Source
Sign inSign up
TanStack/form
Open History to see the last commit

ErrorVisibilityContext.md

47 lines1.1 KB

Defined in: validation.public.ts:315

Form and field state used to decide whether to show a field's errors.

Type Parameters

TFormData

TFormData

Library-managed. Do not specify explicitly.

TFormErrorTypes

TFormErrorTypes extends FormErrorTypes

Library-managed. Do not specify explicitly.

Properties

fieldState

fieldState: ErrorVisibilityFieldState;

Defined in: validation.public.ts:325

The field whose errors the policy controls.


state

state: FormState<TFormData, TFormErrorTypes>;

Defined in: validation.public.ts:323

Current form state. For a field in a form group, flags and submission counters describe that group. values and errors describe the whole form.