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:
QueryBuilder
is rendered with anindependentCombinators
propRuleGroup
is rendered withcombinator
orrules
props (deprecated in favor ofruleGroup
)Rule
is rendered withfield
,operator
, orvalue
props (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:
QueryBuilder
is rendered with anindependentCombinators
propRuleGroup
is rendered withcombinator
orrules
props (deprecated in favor ofruleGroup
)Rule
is rendered withfield
,operator
, orvalue
props (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.