useDeprecatedProps()
Call Signature
useDeprecatedProps(
type:"independentCombinators",logWarning:boolean,otherParams:"invalid"|"unnecessary"):void
Logs an error to the console if any of the following are true:
QueryBuilderis rendered with anindependentCombinatorspropRuleGroupis rendered withcombinatororrulesprops (deprecated in favor ofruleGroup)Ruleis rendered withfield,operator, orvalueprops (deprecated in favor ofrule)
Parameters
| Parameter | Type |
|---|---|
type | "independentCombinators" |
logWarning | boolean |
otherParams | "invalid" | "unnecessary" |
Returns
void
Defined in
packages/react-querybuilder/src/hooks/useDeprecatedProps.ts:10
Call Signature
useDeprecatedProps(
type:"ruleGroup"|"rule",logWarning:boolean):void
Logs an error to the console if any of the following are true:
QueryBuilderis rendered with anindependentCombinatorspropRuleGroupis rendered withcombinatororrulesprops (deprecated in favor ofruleGroup)Ruleis rendered withfield,operator, orvalueprops (deprecated in favor ofrule)
Parameters
| Parameter | Type |
|---|---|
type | "ruleGroup" | "rule" |
logWarning | boolean |
Returns
void
Defined in
packages/react-querybuilder/src/hooks/useDeprecatedProps.ts:15
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.