componentWillReceiveProps is deprecated
See original GitHub issueW/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:
- Created 4 years ago
- Reactions:35
- Comments:24 (1 by maintainers)
Top 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 >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
I still have this issue… I’m working with the newest version: v4.1.2
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.