-
Notifications
You must be signed in to change notification settings - Fork 50.1k
Closed
Labels
Component: React CompilerStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug
Description
What kind of issue is this?
- React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- react-compiler-healthcheck (build issue installing or using the healthcheck script)
Link to repro
https://github.com/ellemedit/nextjs-react-compiler-not-work
Repro steps
bun dev- open with React devtools
- you can see component not memoized even react compiler configured:

- then you can edit
app/IconButton.tsxto:"use client"; import { ComponentProps } from "react"; export function IconButton({ children, ...props }: ComponentProps<"button">) { return <button {...props}>{children}</button>; } Cmd + Kand rerunbun dev- you can see component is memoized:

both Turbopack and webpack behave same.
How often does this bug happen?
Every time
What version of React are you using?
19.2.0
What version of React Compiler are you using?
rc.1
Metadata
Metadata
Assignees
Labels
Component: React CompilerStatus: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug