The React compiler promises to delete every useMemo and useCallback you ever wrote. Mostly it delivers — but understanding the boundaries keeps you out of trouble.
It memoises what it can prove is stable
The compiler is conservative by design. When it cannot prove a value is referentially stable, it leaves the work to the runtime, exactly as before.
Comments