Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unknown props message in console while using redux form

im using redux form for react application. im facing this warning in console on rendering of form

warning: Unknown props `initialValue`, `autofill`, `onUpdate`, `valid`, `invalid`, `dirty`, `pristine`, `active`, `touched`, `visited`, `autofilled` on <input> tag. Remove these props from the element.

how to resolve this warning in redux form

like image 849
Muhammad Ateek Avatar asked Feb 07 '23 13:02

Muhammad Ateek


1 Answers

This warning was introduced in React 15.2.0 to prevent people from passing down unnecessary or invalid props. Redux form did this, which probably is why you see the warning. There's a closed issue for it on their issue tracker on GitHub if you want to read more. It should be fixed in this version, so try updating and the warning should go away.

like image 117
tobiasandersen Avatar answered Feb 09 '23 03:02

tobiasandersen