Skip to content

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

@tangrammer

Description

@tangrammer

Hi @finnfiddle :)

We've updated react to last version on akvo-lumen client and now we get this problem that I'd bet that comes from your lib 🤔

  • 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: _class

...
Please update the following components: Text

I tried to run npx react-codemod rename-unsafe-lifecycles in your lib but the results are weird 😬

any ideas??

have a good day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions