Skip to main content

deriveRuleGroupContext()

deriveRuleGroupContext<C>(ruleGroup: RuleGroupTypeAny, combinators: FullOptionList<C>, options?: { id?: string; validationMap?: ValidationMap; }): RuleGroupContext<C>

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

Resolves everything about a rule group that depends on the combinator configuration, plus its validation result.

Note that unlike deriveRuleContext, there is no field-level validator fallback—a group's validation result comes only from the query-level ValidationMap.

Type Parameters

Type ParameterDefault type
C extends FullCombinatorFullCombinator

Parameters

ParameterType
ruleGroupRuleGroupTypeAny
combinatorsFullOptionList<C>
options{ id?: string; validationMap?: ValidationMap; }
options.id?string
options.validationMap?ValidationMap

Returns

RuleGroupContext<C>


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.