Warning : componentWillReceiveProps has been renamed, and is not recommended for use.
See original GitHub issueHi,
I am getting this warning in console. I have installed the latest version ^3.0.4
of react-select along with ^3.0.4
of @types/react-select
. The warning says that - Please update the following components: AutosizeInput, Select
. I tried looking for componentWillReceiveProps method in the repo, but I couldn’t find any file using it. Why am I getting this warning?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:25
- Comments:7 (1 by maintainers)
Top Results From Across the Web
reactjs - componentWillReceiveProps has been renamed
Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 17.x, only the ...
Read more >Warning: componentWillReceiveProps has been ... - GitHub
componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Read more >Warning: componentWillMount has been Renamed, and is not ...
Learn what causes "Warning: componentWillMount has been renamed, and is not recommended for use."
Read more >Reactjs – componentWillReceiveProps has been renamed
react-dom.development.js:12466 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See for details.
Read more >componentWillReceiveProps warning - Questions - Babylon.js
*Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-unsafe-component-lifecycles ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Still getting warning messages as of 3.0.8. This will prevent the new react concurrent mode (not released yet) from working.
To reproduce, wrap your app in
<React.StrictMode></React.StrictMode>
tags.the same warning message is happening for jest as well.
`console.warn node_modules/react-dom/cjs/react-dom.development.js:11494 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
`
package.json