-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
jsx-no-leaked-render
performs redundant props check and invalid fix in coerce mode
#3431
Comments
isChecked could be undefined, according to the types, and default arguments aren’t something that can really be used reliably with static analysis - so i think the warning may be correct. I agree, though, that the autofix is incorrect - it should be fixing it to |
cc @Belco90 |
hey, would like to work on this issue |
Go for it! |
i was not able to reproduce the issue |
In that case, can you make a PR with passing test cases, and it can close this issue? |
I had an identical situation to the OP, and this error still occurred. @himanshu007-creator, did you remember to change the allowed strategies to only |
Context
There is a sample
Checkbox
component:The eslint config file contains a rule:
Expected behavior
Linting the code raises no issues
Actual behavior
which causes the logical issues (the
isChecked
is removed in that case).The text was updated successfully, but these errors were encountered: