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.

componentWillReceiveProps is deprecated

See original GitHub issue
W/ReactNativeJS: Warning: componentWillReceiveProps is deprecated and will be removed in the next major version. Use static getDerivedStateFromProps instead.

Please update the following components: ProgressBar

Learn more about this warning here:
https://fb.me/react-async-component-lifecycle-hooks
"react": "16.8.6",
"react-native": "0.60.3",
"react-native-progress": "^3.6.0",

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:35
  • Comments:24 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gertvdkolkcommented, Sep 21, 2020

I still have this issue… I’m working with the newest version: v4.1.2

0reactions
nytegoth1commented, Feb 22, 2021

I know this is an old post, but it could be helpful. If you update the version in your package.json file just copy and paste the name in chrome ie react-redux-loading. Find the latest version on npmjs and input that version in your package.json, then do a npm install. Be sure to save a copy in case of any issues. I had three Please update warnings, and this method fixed them all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs - why is componentWillReceiveProps deprecated?
componentWillReceiveProps is a synchronous hook. Calling asynchronous function like data fetching inside this hook will need to render in ...
Read more >
React17, or how to get rid of “componentWillReceiveProps”?
As you may already know, with the release of React 16.3, some of legacy lifecycles were deprecated. One of the biggest lessons we've...
Read more >
Refactor componentWillReceiveProps() to ... - Egghead.io
The componentWillReceiveProps() method is being deprecated in future version of React (17). Many of us use this method day-to-day to check for incoming...
Read more >
Replacing 'componentWillReceiveProps' with ... - Medium
With the release of React 16.3, some new lifecycle methods have been introduced, and release of React 17 will deprecate some lifecycle method....
Read more >
Handle 'componentWillReceiveProps' deprecation warning
props change of a component. So what to do? One solution is to use the static getDerivedStateFromProps method. There is a great 'HowTo'...
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