perf(compiler): Check component params before scanning bodies (#37622)
Change Description
This change backports oxc-project/oxc#26451 to the Rust React Compiler. It checks 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 n******@openai.com
Commit Details
- Commit Hash:
6e9c55c - Parent Commit:
9b93853 - Files Changed: 1 file changed
- Lines Changed: 2 additions & 2 deletions
- Backported Pull Request: oxc-project/oxc#26451
Diff
| Original Line | Diff Line | Change |
|---|---|---|
| 1115 | 1115 | |
| 1116 | 1116 | |
| 1117 | 1117 | |
| 1118 | - | |
| 1119 | - | |
| 1118 | + | |
| 1119 | + | |
| 1120 | 1120 | |
| 1121 | 1121 | |
| 1122 | 1122 |
0 commit comments
Comments
No comments yet. Start the discussion.