Skip to main content

getQuerySelectorById()

getQuerySelectorById(qbId: string): (state: RqbState) => RuleGroupTypeAny

Given a qbId (passed to every component as part of the schema prop), returns a Redux selector for use with useQueryBuilderSelector.

Note that useQueryBuilderQuery is a more concise way of accessing the query for the nearest ancestor QueryBuilder component.

Parameters

ParameterType
qbIdstring

Returns

Function

Parameters

ParameterType
stateRqbState

Returns

RuleGroupTypeAny

Defined in

packages/react-querybuilder/src/redux/selectors.ts:13


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.