-
Notifications
You must be signed in to change notification settings - Fork 50k
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
| for (const prefix in sources) { |
Repro steps
Hello @gsathya ,
I was wondering if the for ... in was intended instead of for ... of.
I think for ... of is more recommended for array of strings (Array<string>) like in this case.
Thanks!
How often does this bug happen?
Every time
What version of React are you using?
18.3.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