4 questions
-1 votes
0 answers
43 views
Component shows as memoized in DevTools but still re-renders
I'm facing an issue with the React Compiler auto-memo. React DevTools shows that Test2 is memoized (sparkle icon), but console.log still runs on every render. import { useState } from "react"...
0 votes
0 answers
96 views
React Compiler says it is working but is not optimizing in real world example
I am adding React Compiler into our project. The compiler is shown in the devTools as working (the little stars emoji). But when I run a scenario with a component that could be optimized with useMemo ...
2 votes
1 answer
191 views
How to prevent React Compiler automatic memoization for intentionally volatile computations without using "use no memo"?
I am using React Compiler v1.0 in a React 19 application. I have specific components where I intentionally want fresh calculations on every render for correctness reasons but the React Compiler is ...
1 vote
1 answer
344 views
React 19 compiler and inline functions in jsx
I am currently upgrading my codebase to react 19 and using the compiler. Traditionally in react inline arrow functions in the jsx were considered bad practice for performance reasons, however I am ...