Skip to content

Resolve Hooks callbacks declared outside a nested block - #38419

Open
cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/exhaustive-deps-enclosing-block
Open

cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/exhaustive-deps-enclosing-block

Conversation

@cvasingh

Copy link
Copy Markdown

Summary

Resolve named callbacks in enclosing render scopes so exhaustive-deps can detect missing dependencies when a Hook is called inside a block.

How did you test this change?

New regressions failed in 24 ESLint/parser combinations before the fix. All 5,136 Hooks tests passed afterward. ESLint and Prettier passed.

@meta-cla meta-cla Bot added the CLA Signed label Nov 28, 2026
@github-actions

Copy link
Copy Markdown

A size report will appear here when the build finishes.

Generated by sizebot against 1a100c1

This branch has not been deployed

No deployments
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.

1 participant