Skip to main content

RuleFacet

RuleFacet = Pick<RuleType, "field" | "operator" | "valueSource">

Defined in: packages/core/src/utils/deriveRuleContext.ts:114

The subset of a rule that determines its configuration. Accepting only these properties (rather than the whole rule) lets React callers keep granular memoization dependencies, so editing a rule's value doesn't recompute its operators, value sources, or option lists.


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.