Skip to main content

preferFlagProps()

preferFlagProps(props?: QueryBuilderFlags, contextVals?: QueryBuilderFlags, finalize?: boolean): QueryBuilderFlags

Defined in: packages/core/src/utils/preferProp.ts:43

For a given set of defaults, props, and context values, return the first provided of prop, context, and default—in that order—for each property in the defaults object.

Parameters​

ParameterType
propsQueryBuilderFlags
contextValsQueryBuilderFlags
finalize?boolean

Returns​

QueryBuilderFlags


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.