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 Parameter | Default type |
|---|---|
C extends FullCombinator | FullCombinator |
Parameters
| Parameter | Type |
|---|---|
ruleGroup | RuleGroupTypeAny |
combinators | FullOptionList<C> |
options | { id?: string; validationMap?: ValidationMap; } |
options.id? | string |
options.validationMap? | ValidationMap |
Returns
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.