[Compiler Bug]: Invalid drop of memoization for string template literals #29580
Labels
Component: Optimizing Compiler
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Type: Bug
What kind of issue is this?
Link to repro
https://playground.react.dev/#N4Igzg9grgTgxgUxALhAMygOzgFwJYSYAEUYCAogB4AOCmYeAbggMo4x6YDmAFJ9VBzIiYdpy4BKIsAA6xIjAQ5YxUggCyCALYQePKQF4AfEQAGaCBAD0AEmAIadBswBilvpgE4JAX1MAaIgBtfkEAXQk5HzkQHyA
Repro steps
If I call expensive function, for example some kind of hashing inside string literal React Compiler drops any memoization calling the expensiveFunction during every re-render.
gets compiled to
instead of
How often does this bug happen?
Every time
What version of React are you using?
current playground
The text was updated successfully, but these errors were encountered: