Reputation: 7652
have upgraded to react 16.9 but seeing these errors in the console:
Warning: componentWillMount has been renamed, and is not recommended for use.
and
Warning: componentWillReceiveProps has been renamed, and is not recommended for use
I know the fix should be to put UNSAFE_
in front, however I am not using these methods anywhere
so I'm guessing one of the packages I'm using is using one of these methods, how do I work out which package it is and fix it?
alternatively is there a way to just suppress it?
Upvotes: 2
Views: 995
Reputation: 2420
I am also facing same issue. ALthough i am not able to fix it but i definitely know how to mute it in the console. So when you open the console u will see a default levels options next to filter bar under console. Just click on that and unselect warning options. And kaboom thats it. You will not see those annoying warning anymore. Hope this helps!
Upvotes: 1