You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What?
Mark function components declared as a variable interesting
### Why?
Because those are also React Components
### How?
- Closes SWC-646
- Closes#78867
### What?
Mark function components declared as a variable interesting
### Why?
Because those are also React Components
### How?
- Closes SWC-646
- Closes#78867
kdy1
added a commit
to swc-project/swc
that referenced
this issue
May 6, 2025
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/interesting-bird-tkf7lw
To Reproduce
Just run the app and use the React Dev Tools to see which components are memoized.
Current vs. Expected behavior
Expect that the React compiler to work
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.6.0: Thu Mar 6 22:00:07 PST 2025; root:xnu-10063.141.1.704.6~1/RELEASE_ARM64_T6030 Available memory (MB): 18432 Available CPU cores: 12 Binaries: Node: 22.15.0 npm: 10.9.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 15.3.1 // Latest available version is detected (15.3.1). eslint-config-next: N/A react: 19.1.0 react-dom: 19.1.0 typescript: 5.8.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
This is the pull request that caused the issue: #78260
The text was updated successfully, but these errors were encountered: