We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fab8c1 commit 204bbd4Copy full SHA for 204bbd4
packages/eslint-plugin-react-hooks/src/ExhaustiveDeps.js
@@ -1119,8 +1119,8 @@ export default {
1119
const declaredDependenciesNode = node.arguments[callbackIndex + 1];
1120
const isEffect = /Effect($|[^a-z])/g.test(reactiveHookName);
1121
1122
- // Check whether a callback is supplied to useEffect. If there is no
1123
- // callback supplied then the hook will not work and React will throw a TypeError.
+ // Check whether a callback is supplied. If there is no callback supplied
+ // then the hook will not work and React will throw a TypeError.
1124
// So no need to check for dependency inclusion.
1125
if (!callback) {
1126
reportProblem({
0 commit comments