Skip to content

In React 16.9.x & up, Console warnings about componentDidMount & willReceiveProps, require UNSAFE_ prefix. #58

@nypinstripes

Description

@nypinstripes

Hey, @prrashi @emilcieslar @selvagsz @umanghome @SCasarotto

As of React 16.9.x it seems the authors are beginning their transition to a full hooks or hooks preferred component strategy. This latest change requires that all componentWillMount, componentWillReceiveProps & componentWillUpdate calls, including those within bundle dependency packages, be prefixed with the UNSAFE_ prefix in order to dismiss the below console warnings. Of which, in my latest app where I'm using power-select I get about 4 per instance. I'd love to continue using power-select for all my select & typeahead needs, but have some stricter demands from my colleagues on console warnings, if you would kindly check into this, I'd be most appreciative. Thanks

Btw been a fan of your (highly flexible) library for a couple years now and have used it in just about every react project I've worked on.

Screen Shot 2019-08-20 at 10 49 12 AM

https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html

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