question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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 issue

Warning: 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:closed
  • Created 4 years ago
  • Reactions:18
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
jalvarsoncommented, Oct 17, 2019

Wondering the same. Is this library still maintained @loktar00 ?

4reactions
loktar00commented, Jul 8, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found