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 5587b8c commit 7e28144Copy full SHA for 7e28144
packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
@@ -117,7 +117,7 @@ export default {
117
function countPathsFromStart(segment, pathHistory) {
118
const {cache} = countPathsFromStart;
119
let paths = cache.get(segment.id);
120
- let pathList = new Set(pathHistory);
+ const pathList = new Set(pathHistory);
121
122
// If `pathList` includes the current segment then we've found a cycle!
123
// We need to fill `cyclic` with all segments inside cycle
0 commit comments