-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Description
in following scenarios react/no-unused-prop-types is triggered falsely
- if a particular prop is only accessed via
nextProps
then its not being considered as usage
- in my use case i am referring in
componentWillReceiveProps(nextProps)
- sometimes if a prop is read only via es6 destructuring then its not being considered as usage
const { dataPoint } = this.props;
- if a prop is referred inside a array.map callback then usage is not detected.
mathieudutour, sumansai14, vivek3003, spudly, claydiffrient and 6 more
Metadata
Metadata
Assignees
Labels
No labels