Skip to main content

Function: useCheckAllFormFieldValues()

useCheckAllFormFieldValues<Value>(configs, predicate): boolean

Defined in: lib/forms/fields.ts:219

Hook to check that a predicate function returns true for all the form fields of the given list.

Type Parameters

Value

Value

Parameters

configs

FieldConfigAtom<Value>[]

The list of field configuration atoms.

predicate

(value) => boolean

The predicate function to check.

Returns

boolean

True if the predicate returns true for all fields.