Remove componentWillReceiveProps
See original GitHub issueHey!
I updated my React version to 16.8.6
and see that it yields a warning for the SockJsClient
component.
If it’s possible, I’d like to submit a PR if you don’t have time or something similar.
Thanks for the package!
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
React17, or how to get rid of “componentWillReceiveProps”?
React17, or how to get rid of “componentWillReceiveProps”? As you may already know, with the release of React 16.3, some of legacy lifecycles...
Read more >How to remove componentWillReceiveProps for component ...
I'm struggling with how to implement this in response to componentWillReceiveProps deprecation. React docs claim getDerivedStateFromProps should ...
Read more >Remove use of componentWillReceiveProps for React 16 #970
Hi Since the React 16.9.0 version, the following deprecation warning about React legacy lifecycle methods appears: Warning: ...
Read more >React.Component
This method is called when a component is being removed from the DOM: ... This lifecycle was previously named componentWillReceiveProps .
Read more >Replacing React Lifecycle Methods with Hooks - Bits and Pieces
Therefore, we have clearInterval in that function to remove the timer from when the component unmounts. componentWillReceiveProps / ...
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
Hey,
You are welcome to submit a PR, it would be a great help.
Hello,
Any update on this issue?