Skip to content

perf(compiler): Check component params before scanning bodies - #37622

Merged
javache merged 1 commit into
react:mainfrom
scttcper:scttcper/check-component-params
Sep 15, 2026
Merged

javache merged 1 commit into
react:mainfrom
scttcper:scttcper/check-component-params

Conversation

@scttcper

@scttcper scttcper commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Backports oxc-project/oxc#26451 to the Rust React Compiler.

Check component parameters before scanning for hooks or JSX, so functions with invalid component signatures skip the traversal. Component classification stays the same.

Backport oxc-project/oxc#26451 to the Rust compiler.

Reject invalid component parameters before scanning for hooks or JSX.

Co-Authored-By: Codex <[email protected]>
@meta-cla meta-cla Bot added the CLA Signed label Sep 14, 2026
@scttcper
scttcper marked this pull request as ready for review September 14, 2026 01:20
@javache
javache merged commit 6e9c55c into react:main Sep 15, 2026
28 checks passed
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.

2 participants