File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export interface GenerateConfig<OptionsType extends object[]> {
183
183
) => OptionsType ;
184
184
/** Check if a value is disabled */
185
185
isValueDisabled : ( value : RawValueType , options : FlattenOptionsType < OptionsType > ) => boolean ;
186
- warningProps : ( props : any ) => void ;
186
+ warningProps ? : ( props : any ) => void ;
187
187
fillOptionsWithMissingValue ?: (
188
188
options : OptionsType ,
189
189
value : DefaultValueType ,
@@ -841,7 +841,7 @@ export default function generateSelector<
841
841
}
842
842
843
843
// ============================ Warning =============================
844
- if ( process . env . NODE_ENV !== 'production' ) {
844
+ if ( process . env . NODE_ENV !== 'production' && warningProps ) {
845
845
warningProps ( props ) ;
846
846
}
847
847
You can’t perform that action at this time.
0 commit comments