Skip to main content

createQueryActions()

createQueryActions(config?: QueryActionsConfig): QueryActionHandlers

Defined in: packages/core/src/utils/queryActions.ts:133

Builds the query builder's seven mutation handlers as pure functions of the current query.

This is the framework-agnostic core of the action handlers in useQueryBuilderSchema. It owns the policy that surrounds the query tools—disabled gating, the confirmation callback protocol, maxLevels, and debug logging—so an implementation only has to supply its own storage: read the current query, call the action, and apply a non-undefined result.

Parameters​

ParameterType
configQueryActionsConfig

Returns​

QueryActionHandlers


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.