Skip to content

perf(react-compiler): check component parameters before scanning bodies - #26451

Merged
graphite-app[bot] merged 1 commit into
mainfrom
codex/perf-react-compiler-component-params
Sep 8, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
codex/perf-react-compiler-component-params

Conversation

@camc314

@camc314 camc314 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI lite review requested due to automatic review settings September 8, 2026 13:27
@camc314
camc314 requested a review from Boshen as a code owner September 8, 2026 13:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T13:28:53.666376Z 2de102d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the A-react-compiler Area - React Compiler transforms and lint rules, oxc_react_compiler label Sep 8, 2026
@codspeed

codspeed Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 10 untouched benchmarks
⏩ 71 skipped benchmarks1


Comparing codex/perf-react-compiler-component-params (2de102d) with main (53f006e)

Open in CodSpeed

Footnotes

  1. 71 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Sep 8, 2026

camc314 commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Merge activity

camc314 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor Author

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent changes, fast-track this PR to the front of 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.
@graphite-app
graphite-app Bot force-pushed the codex/perf-react-compiler-component-params branch from 2de102d to dbe4fac Compare September 8, 2026 13:44
@graphite-app
graphite-app Bot merged commit dbe4fac into main Sep 8, 2026
33 checks passed
@graphite-app graphite-app Bot removed the 0-merge Merge with Graphite Merge Queue label Sep 8, 2026
@graphite-app
graphite-app Bot deleted the codex/perf-react-compiler-component-params branch September 8, 2026 13:48
javache pushed a commit to react/react that referenced this pull request Sep 15, 2026
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]>
acusti pushed a commit to acusti/uikit that referenced this pull request Sep 21, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-react-compiler Area - React Compiler transforms and lint rules, oxc_react_compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants