in react @16.9.0 Warning:componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:18
- Comments:8 (4 by maintainers)
Top Results From Across the Web
React@16.9.0: Warning: componentWillReceiveProps has ...
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for ...
Read more >Warning: componentWillReceiveProps has been renamed ...
Warning: componentWillReceiveProps has been renamed, and is not recommended for use. Please update the following components: Control(s).
Read more >Facebook Watch - Home
From reality to comedy to live sports, see what shows people are talking about and discover new ones based on what your friends...
Read more >React v16.13.0 – React Blog
Today we are releasing React 16.13.0. It contains bugfixes and new deprecation warnings to help prepare for a future major release.
Read more >react-native-video - npm
See Updating for details. Version 4.0.0 now requires Android target SDK 26+ and Gradle 3 plugin in order to support ExoPlayer 2.9.0. Google...
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
Wondering the same. Is this library still maintained @loktar00 ?
@smolak I might as well, was on vacation just got back yesterday… kind of want to look at the entire component with fresh eyes honestly. It might become a 3.0 with the changes required.