Skip to content

eslint-plugin-react-hooks: allow explicit undefined deps#35413

Open
leeguooooo wants to merge 1 commit intofacebook:mainfrom
leeguooooo:pr-exhaustive-deps-undefined
Open

eslint-plugin-react-hooks: allow explicit undefined deps#35413
leeguooooo wants to merge 1 commit intofacebook:mainfrom
leeguooooo:pr-exhaustive-deps-undefined

Conversation

@leeguooooo
Copy link

Fixes #20262

Summary

  • treat explicit undefined dependencies for non-effect hooks as intentional

Testing

  • yarn workspace eslint-plugin-react-hooks test -- --runTestsByPath tests/ESLintRuleExhaustiveDeps-test.js

@meta-cla meta-cla bot added the CLA Signed label Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: react-hooks/exhaustive-deps false postive when given undefined as deps

1 participant