Availity / availity-reactstrap-validation

Easy to use React validation components compatible for reactstrap.
https://availity.github.io/availity-reactstrap-validation/
MIT License
191 stars 70 forks source link

Warning: componentWillReceiveProps has been renamed #189

Closed bartolomeu closed 4 years ago

bartolomeu commented 4 years ago

Consolo is warning this message

Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details.

  • Move code with side effects to componentDidMount, and set initial state in the constructor.
  • Rename componentWillMount to UNSAFEcomponentWillMount to suppress this warning in non-strict mode. In React 17.x, only the UNSAFE name will work. To rename all deprecated lifecycles to their new names, you can run npx react-codemod rename-unsafe-lifecycles in your project source folder.

Please update the following components: AvForm, AvInput, AvRadioGroup

I'm using React - 16.13.1 availity-reactstrap-validation - ^2.6.1

bartolomeu commented 4 years ago

I'm creating a minimum case test

GoPro16 commented 4 years ago

duplicate of #155