Configures the frequency at which a form field is updated by UI events.
API
function debounce<TValue, TPathKind extends PathKind = PathKind.Root>(
path: SchemaPath<TValue, 1, TPathKind>,
durationOrDebouncer: number | Debouncer<TValue, TPathKind>,
): void;debounce
voidConfigures the frequency at which a form field is updated by UI events.
When this rule is applied, updates from the UI to the form model will be delayed until either the field is touched, or the most recently debounced update resolves.
@paramdurationOrDebouncer
number | Debouncer<TValue, TPathKind>Either a debounce duration in milliseconds, or a custom
Debouncer function.
@returns
voidDescription
Configures the frequency at which a form field is updated by UI events.
When this rule is applied, updates from the UI to the form model will be delayed until either the field is touched, or the most recently debounced update resolves.
Jump to details