Skip to main content

Function: useCheckSomeFormFieldValue()

useCheckSomeFormFieldValue<Value>(configs, predicate): boolean

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

Hook to check that a predicate function returns true for at least 1 form field 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 at least one field.