Skip to main content

AbortReason

AbortReason = "target-not-found" | "parent-not-found" | "parent-not-a-group" | "destination-not-found" | "root-not-allowed" | "not-a-combinator-slot" | "same-location" | "no-change" | "target-disabled" | "parent-disabled" | "max-levels-exceeded"

Defined in: packages/core/src/utils/queryTools.ts:43

Why a query tool returned the query unmodified. Query tools never throw; when they cannot carry out an operation they return the original query and report the reason through AbortOptions.onAbort.

"same-location" and "no-change" describe operations that were valid but had nothing to do, so they are not errors. Every other reason indicates a target that could not be used.


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.