Skip to content
This repository was archived by the owner on Feb 21, 2023. It is now read-only.

Warning for AvForm componentWillMount? #171

Closed
LMarlett opened this issue Dec 6, 2019 · 2 comments
Closed

Warning for AvForm componentWillMount? #171

LMarlett opened this issue Dec 6, 2019 · 2 comments

Comments

@LMarlett
Copy link

LMarlett commented Dec 6, 2019

Im getting this warning even though I have 2.6.1 installed.

[Warning] Warning: componentWillMount has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles for details. (0.chunk.js, line 63054)

  • Move code with side effects to componentDidMount, and set initial state in the constructor.
  • Rename componentWillMount to UNSAFE_componentWillMount 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

@jonbnewman
Copy link

I am also seeing this on AvInput as well...running version 2.6.1

@GoPro16
Copy link
Contributor

GoPro16 commented Feb 10, 2020

Duplicate of #155

@GoPro16 GoPro16 marked this as a duplicate of #155 Feb 10, 2020
@GoPro16 GoPro16 closed this as completed Feb 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants