Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto committed Sep 24, 2022
1 parent 5739a2f commit 67419d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,8 @@ export default {
},

Identifier(node) {
// This identifier resolves to a useEvent function, but isn't being referenced in an
// effect or another event function. It isn't being called either.
if (
lastEffect == null &&
useEventFunctions.has(node) &&
Expand Down

0 comments on commit 67419d3

Please sign in to comment.