React-autosuggest: Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps

Created on 3 Dec 2019  路  10Comments  路  Source: moroshko/react-autosuggest

Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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: Autosuggest, Autowhatever.
Could you please update the component according to this message in console.log.

Most helpful comment

I see the thread has merge in master. And when will the changes appear in the package?

All 10 comments

Yeah, Please merge this pull request ASAP.

I looked at pull request. These are the changes that are needed. And I don't need to add pull request. Thanks for the quick response. I will wait for the package update

I see the thread has merge in master. And when will the changes appear in the package?

Note: This breaks react <16.3 support.

+1 also waiting on updated package.

+1

+1

+1

from pull request, 17 days ago:

npm i && npm t is failing on master. Does anyone have time to look into this?

Fixed in #681

Was this page helpful?
0 / 5 - 0 ratings