Skip to content

Scope do-while Hook checks to the render function - #38434

Open
cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/rules-of-hooks-do-while-boundary
Open

cvasingh wants to merge 1 commit into
react:mainfrom
cvasingh:fix/rules-of-hooks-do-while-boundary

Conversation

@cvasingh

Copy link
Copy Markdown

Summary

Scope the do-while check to the component or custom Hook being linted so an enclosing definition loop does not affect the diagnostic.

How did you test this change?

The valid Hook and conditional diagnostic regressions failed in all 24 runs on main. All 5,112 Hooks tests passed with the fix.

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

Copy link
Copy Markdown

A size report will appear here when the build finishes.

Generated by sizebot against 658cb4c

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