Function: useCheckSomeAtomValue()
useCheckSomeAtomValue<
Value>(atoms,predicate):boolean
Defined in: lib/state-management/atoms.ts:38
Hook that checks if a predicate function returns true for at least one atom in a list.
Type Parameters
Value
Value
The type of the atoms' values.
Parameters
atoms
(undefined | WritableAtom<Value, any, any>)[]
Array of atoms to check.
predicate
(value?) => boolean
Function to test each atom's value.
Returns
boolean
True if predicate returns true for at least one atom.