-
Notifications
You must be signed in to change notification settings - Fork 47.2k
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
Bug: react-hooks/exhaustive-deps false positive on TypeScript generic type variable #20395
Comments
Can I take this? |
@mschl0ss We can't reproduce the reported bug with our versions of |
@eps1lon Running that command produced this result:
After running that command I do not see the bug anymore, so I guess that did fix it. Can you explain to me what the command did? Also, why is @sweetliquid seeing the error in his sandbox? |
codesandbox might use outdated dependencies which we can't fix. If I download the codesandbox and install it I get no lint errors which hints at outdated dependencies in codesandbox.
It should've actually printed something more but I forgot to add an important flag: |
Results:
|
The bug seems to have gone away. I worry that I'm giving you the false impression that the bug is being reproduced with the versions reported above. |
Fairly certain this error was fixed at some point. Make sure to use the latest version of |
I hit this too, and it went away after deleting old eslint caches. Something to try if anyone else happens onto this issue. |
React version: 16.13.1
Steps To Reproduce
Code example:
The current behavior
Dependency array throws ESLint error.
The expected behavior
No missing dependencies reported.
The text was updated successfully, but these errors were encountered: