Skip to main content

SubscriptionChange

Defined in: packages/core/src/utils/QueryManager.ts:346

What changed in the notification a QueryManager.subscribe listener is receiving.

The two flags are independent, and at least one is always true. A single notification can report both: a batch containing a reconfigure and a mutation emits one { query: true, config: true }.

Listeners that ignore their argument keep working exactly as before — this exists so that a framework adapter can skip the work a change does not affect (re-deriving option lists on a query-only change, say) without diffing the manager's output to find out.

Properties

config

config: boolean

Defined in: packages/core/src/utils/QueryManager.ts:350

Options were applied, so option lists and any derived configuration may have changed.


query

query: boolean

Defined in: packages/core/src/utils/QueryManager.ts:348

The query was replaced.


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.