Skip to main content

StrictOptions

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

Per-call overrides for QueryManager's abort handling. Every mutating method accepts these alongside the options of the query tool it delegates to.

Properties

onInvalidTarget?

optional onInvalidTarget?: (info: AbortInfo) => void

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

Called whenever an operation is aborted, including for the non-error reasons "same-location" and "no-change". Runs before any strict throw, so an operation can be both observed and enforced. Overrides the manager's own onInvalidTarget option.

Parameters

ParameterType
infoAbortInfo

Returns

void


strict?

optional strict?: boolean

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

Throw a QueryManagerError when an operation is aborted for one of the strictAbortReasons. Overrides the manager's own strict option.


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.