In React 16.9.x & up, Console warnings about componentDidMount & willReceiveProps, require UNSAFE_ prefix.
nypinstripes opened this issue · comments
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.
https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
@nypinstripes Appreciate your nice words. I'd go ahead with running the codemod to resolve the deprecation notices as a short term fix
I've plans to rewrite this package to use the react hooks