
PodRocket The useless useCallback: React performance myths unpacked, with Dominik Dorfmeister (Repeat)
Nov 27, 2025
Dominik Dorfmeister, a software engineer at Sentry and open source maintainer, dismantles common React myths around useCallback and useMemo. He reveals how these hooks often complicate rather than enhance performance. Dominik discusses the React Compiler's potential, advocating for the latest ref pattern as a simpler alternative. He warns about the dangers of overusing memoization and emphasizes that clarity and maintainability should trump micro-optimizations. Listeners will gain insights on improving code reviews and optimizing team practices.
AI Snips
Chapters
Transcript
Episode notes
Memoization Often Fails Over Time
- useCallback and useMemo often add complexity without long-term benefits in large codebases.
- Dominik found many usages that were unnecessary because surrounding memoization had become invalid.
Only Memoize When Measured And Surgical
- Question every usage of useCallback and useMemo before adding them to code.
- Apply memoization surgically and only where you measured a real need.
React Compiler Changes The Memo Game
- The React Compiler can automate safe memoization across renders and props.
- Automating memoization reduces human error and the maintenance burden of manual memoization.
