`no-unused-prop-types` and `getDerivedStateFromProps`
See original GitHub issueno-unused-prop-types
should take into account usages from new React lifecycles
Issue Analytics
- State:
- Created 5 years ago
- Reactions:29
- Comments:31 (16 by maintainers)
Top Results From Across the Web
You Probably Don't Need Derived State – React Blog
When to Use Derived State. getDerivedStateFromProps exists for only one purpose. It enables a component to update its internal state as the ...
Read more >Lifecycle, state, getDerivedStateFromProps and Hooks - Medium
This new lifecycle function is meant as replacement to componentWillReceiveProps which is unsafe for async rendering when misused.
Read more >Why getDerivedStateFromProps is called after setState?
The way getDerivedStateFromProps hook works whenever the new props, setState, and forceUpdate is being received.
Read more >componentWillReceiveProps vs getDerivedStateFromProps ...
Hello We have found a scenario where the removal of componentWillReceiveProps will encourage us to write worse code than we currently do.
Read more >ReactJS – getDerivedStateFromProps() Method - Tutorialspoint
This method is majorly used to update the state, before the rendering of the component, which depends upon the props received by the...
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 Free
Top 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
Waiting for this.
eslintrc file in the project root foler
eslintrc file in the folder that contains our react app