Using expired functions :componentWillReceiveProps has been renamed
See original GitHub issueWarning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
- Move data fetching code or side effects to componentDidUpdate.
- If you’re updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://fb.me/react-derived-state
- 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: Tour
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Warning: componentWillReceiveProps has been renamed ...
componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Read more >get warning "componentWillReceiveProps has been renamed ...
Use componentDidMount whenever you need operate async operation ... Then you should search the code and find "componentWillReceiveProps".
Read more >componentWillReceiveProps has been renamed - React Studio
In React 17. x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run npx...
Read more >componentwillreceiveprops has been renamed stackoverflow
The reason is that the componentWillReceiveProps method is being deprecated by React and it is still used in the Grid. The team is...
Read more >componentwillmount has been renamed, and is not ... - You.com
You're getting this warning because componentWillMount is deprecated in newer React versions. If you're not using componentWillMount anywhere then one of your ...
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 Free
Top 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
@elrumordelaluz when will this be released?
Looking forward to the release too. any date of release?