-
Notifications
You must be signed in to change notification settings - Fork 50.5k
Open
Labels
Status: 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-hooks (build issue installing or using the eslint plugin)
- react-compiler-healthcheck (build issue installing or using the healthcheck script)
Link to repro
Repro steps
- See the playground link, where the func call at line 6 isn't memoized.
- Swap line 2 and line 4, and see that func call becomes memoized now.
Why does the different order of statements before the func call affect whether the func call is memoized? I'm expecting the func call to be memoized in both cases.
How often does this bug happen?
Every time
What version of React are you using?
Both 19.2.3, and whatever the playground is using
What version of React Compiler are you using?
Both babel-plugin-react-compiler@1.0.0, and whatever the playground is using
Metadata
Metadata
Assignees
Labels
Status: UnconfirmedA potential issue that we haven't yet confirmed as a bugA potential issue that we haven't yet confirmed as a bugType: Bug