Skip to main content

useOptionListProp()

useOptionListProp<O extends {[key: string]: unknown; disabled?: boolean; label: string; name: string; value: string; }>(props: UseOptionListPropParams<O>): UseOptionListProp<O>

Defined in: packages/react-querybuilder/src/hooks/useOptionListProp.ts:18

Type Parameters​

Type Parameter
O extends {[key: string]: unknown; disabled?: boolean; label: string; name: string; value: string; }

Parameters​

ParameterType
propsUseOptionListPropParams<O>

Returns​

UseOptionListProp<O>

Deprecated​

Memoize the result of prepareOptionList instead.


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.