Repository navigation
perf(react-compiler): check component parameters before scanning bodies - #26451
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
…es (#26451) Check component parameter validity before scanning for hooks or JSX. Invalid parameter lists now short-circuit the body scan without changing component classification.
2de102d to
dbe4fac
Compare
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. Co-authored-by: Codex <[email protected]>
The React Compiler crate's one commit in this range reorders a short-circuiting `&&` check for performance (oxc-project/oxc#26451), without changing which functions are classified as components. The shared oxc codegen crate fixes one more silent miscompile visible in our output: a private-in expression used as the right operand of a relational operator lost its parentheses, e.g. `#x in a instanceof b` instead of `#x in (a instanceof b)` (oxc-project/oxc#26411), completing the left-operand fix pinned in 0.149.0. Two other confirmed parser fixes never come up in realistic component code (yield losing parens around `in` in a for-loop initializer, oxc-project/oxc#26413; a class expression with a static block rejected in that same position, oxc-project/oxc#26423), and a third only changes diagnostic text for input that still fails to parse either way (oxc-project/oxc#26532). Root and docs devDependencies are bumped too so bun hoists a single copy for the plugin package. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jb4Vtymzw6t2LrRtjSPLEU

Check component parameter validity before scanning for hooks or JSX. Invalid parameter lists now short-circuit the body scan without changing component classification.