PodRocket

Whats new in React 19.2 with Shruti Kapoor

14 snips
Dec 4, 2025
Shruti Kapoor, a staff engineer and educator expert in React, dives into the latest features of React 19.2. She breaks down innovations like Activity for easy state restoration and View Transitions for seamless animations. The discussion covers useEffectEvent for better event handling and cacheSignal for efficient server interactions. Shruti also touches on new Chrome DevTools performance tracks and the stable React Compiler, making your development experience smoother. It's an insightful look into React's evolution!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Watch Effects And Cleanup With Activity

  • Avoid Activity for components that rely on background effects because hidden components stop running useEffect.
  • Add explicit cleanup for DOM side effects (e.g., stop videos) to prevent lingering behavior when Activity hides components.
INSIGHT

View Transitions Move Blocks, Not Parts

  • View Transitions animate components as visual blocks, enabling automatic zoom, pan, or fade transitions.
  • Combined with Activity, they produce smooth state-restoration plus animated navigation without heavy animation libraries.
ADVICE

Move Nonreactive Logic To useEffectEvent

  • Use useEffectEvent to separate non-reactive event logic from reactive effect logic to avoid unnecessary dependencies.
  • Keep reactive updates in useEffect and move one-off or event-driven logic into useEffectEvent to prevent dependency-array churn.
Get the Snipd Podcast app to discover more snips from this episode
Get the app