New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react/no-unused-prop-types cannot find props being used inside helper functions #1135
Comments
The proper way to handle this is not to pass the entire props object around. It's not practical or often possible for the plugin to follow references, and the only thing that should get a props object is an element. In other words, pull |
ok i dont have exactly the same situation. This is my simplified component:
And i get the following linting error:
I figured out its because of the map. It this by design? |
Hello, I ran your latest test case in a PR where we fixed the following issue: #1183 - and in there the test case passed! Prior to the changes from that specific PR, the test case was failing. Removing the So I am quite confident those changes are also fixing the issue that you see here. And yes I would think that this to be a bug. Do others agree? |
In this case
props.status
is being used inside of the functionshowAlert
.The text was updated successfully, but these errors were encountered: