-
Notifications
You must be signed in to change notification settings - Fork 49.9k
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
Repro steps
No reproduction steps required - the playground shows the error.
As a workaround I've just extracted the function (in our real app it's a queryFn to react-query) outside of the component and pass it the arguments instead, so we no longer loop inside the component itself.
For future reference (for when this is fixed and the playground no longer shows an error), this is the current result:
How often does this bug happen?
Every time
What version of React are you using?
N/A
What version of React Compiler are you using?
27714ef-20250124
derekcicerone
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