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.

Replace componentWillReceiveProps

See original GitHub issue

The componentWillReceiveProps should change since it’s going to be deprecated. Right now, the use of this function throws a warning:

Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

1reaction
helloitsm3commented, Jul 13, 2020

Seems like this issue isn’t fix yet. Are you able to clear the warnings on your side?

Hello, since the package isn’t maintained in a long while, I personally decided to drop it and use another one instead…

Which one are you currently using?

I switched to Victory Native.

Thank you. Will take a look at it

0reactions
nraju-nyroscommented, Sep 7, 2020

Hello guys reply me:

Bar chart: How to show y values on top of every bar

Read more comments on GitHub >

github_iconTop Results From Across the Web

Replacing 'componentWillReceiveProps' with ' ...
Replacing 'componentWillReceiveProps' with 'getDerivedStateFromProps'. With the release of React 16.3, some new lifecycle methods have been introduced, and ...
Read more >
React replace componentWillReceiveProps
Having the following method in my child component which updates state on prop changes which works fine componentWillReceiveProps ...
Read more >
Guide To Replacing 'componentWillReceiveProps'
In light of this, we'll discuss the possibility of using getDerivedStateFromProps as a componentWillReceiveProps replacement as React ...
Read more >
React17, or how to get rid of “componentWillReceiveProps”?
This method could be replaced by componentDidUpdate() according to React docs. If you were reading from the DOM in this method (e.g. to...
Read more >
Replacement for componentWillReceiveProps and need ...
We have been using componentWillReceiveProps peacefully and then we decided to upgrade our application to v17 and we read to know to use ......
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