-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
The additionalHooks option of the exhaustive-deps ESLint rule #2350
Comments
Agree, spent all day looking for this today. Would really like to have this documented! |
In VS Code I'm getting this advice about a When I switch to using [2]
|
Clarification - the suggestion However, I realize now that this github repo is for the react.dev site and that these notes really don't belong here. Thanks |
Hello!
I didn't find any mention of that option anywhere. Is the
additionalHooks
option of theexhaustive-deps
ESLint rule stable enough? If that's so, it's a good idea to document it.https://github.com/facebook/react/blob/9e64bf18e11828d6b4c0363bff5ed2eca1ccd838/packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js#L32
https://github.com/facebook/react/blob/9e64bf18e11828d6b4c0363bff5ed2eca1ccd838/packages/eslint-plugin-react-hooks/__tests__/ESLintRuleExhaustiveDeps-test.js#L260
The text was updated successfully, but these errors were encountered: