Skip to content
chornous.dev

Type two or more letters. Esc closes.

Index of sheets
Theme

Sheet 03 · Writing

All notes

React 19.2: Activity, Effect Events and calmer UI state

React 19.2 names two patterns teams were already faking: hidden UI that keeps its state, and effect logic that reads fresh values without re-subscribing.

Pl. 65 · tree drawing generated from the slug “react-19-2-activity-effect-event-notes”

React 19.2 gives names to patterns teams were already approximating. Activity handles "hide this, but keep its state" without routing everything through conditional rendering. useEffectEvent separates event-like logic from effect synchronization, which should cut down on stale closures and on dependency arrays filled in by habit.

The release also adds better performance tracks and clearer scheduling signals, so you can see what React is doing instead of guessing from flame charts alone.

In product terms, tabs, panels, modals, background routes and offscreen flows can keep their state without running every effect all the time. Effects can shrink to the part that syncs with an external system.

Adopt it where it solves a problem you have:

  • Use Activity where keeping hidden UI state is a product requirement.
  • Use Effect Events to simplify effects that mix a subscription with a changing callback.
  • Measure before you refactor render paths that already work.

Teams with complicated UI state will notice 19.2 in smaller effects and simpler tab and panel code.

Volodymyr Chornous