What kind of issue is this?
Link to repro
https://github.com/budarin/react-compiler-bug-repro
Repro steps
- Create a Vite React TS project with React Compiler enabled.
- Use a factory function that returns a component and captures injected dependencies (e.g.
showWelcomeNotification) in a closure.
- Inside the returned component, call the injected dependency in a
useEffect.
- Run the dev server; a runtime
ReferenceError occurs.
How often does this bug happen?
Every time
What version of React are you using?
19.2.4
What version of React Compiler are you using?
1.0.0
What kind of issue is this?
Link to repro
https://github.com/budarin/react-compiler-bug-repro
Repro steps
showWelcomeNotification) in a closure.useEffect.ReferenceErroroccurs.How often does this bug happen?
Every time
What version of React are you using?
19.2.4
What version of React Compiler are you using?
1.0.0