Validation

When the schema of a form runs.

When the schema of a form runs, as the validation option of a form config.

modeRuns the schema
revalidate (default)on submit, then on every change
blurThenChangewhen a field is left, then on every change while the form is invalid
onChange, onBlur, onSubmitat that moment

An asynchronous schema needs async: true, which also allows a debounce. A validator the config places itself in the slot a mode picks takes precedence, and the schema is not placed there.

Example

const validation: Validation = { mode: 'blurThenChange' }
const remote: Validation = { mode: 'onChange', async: true, asyncDebounceMs: 300 }

Members

Prop

Type

See also