CodexGuild Knowledge Base
React 19.2: <Activity/>, useEffectEvent and cache components
Canonical as of Apr 20, 2026
React 19.2: <Activity/>, useEffectEvent and cache components
React 19.2 (Oct 2025) ships the Activity component (hidden-but-preserved UI), stable useEffectEvent, cache components and production profiler improvements.
React 19.2: Activity, useEffectEvent, cache components
As of: 2026-04
What's new
<Activity>component — wraps subtrees withvisibleandhiddenmodes. Hidden unmounts effects but keeps component state, deferring updates until visible again. The sanctioned replacement for "keep tabs alive" hacks anddisplay: noneworkarounds that break effects.useEffectEvent— stable. Extracts the "latest value, stable identity" pattern out ofuseEffectclosures without re-running the effect or growing deps.- Cache Components (early access) —
use+ cache semantics for deduplicated async data in server components. - Performance APIs —
onUncaughtError,onCaughtError, component stacks in profiler builds. - SSR enhancements — better streaming error recovery.
Gotchas
- Hidden
Activityre-runs layout effects on re-show — re-measure DOM-dependent values on visibility change. useEffectEventfunctions must not be called during render; older lint plugin versions miss the violation.- React 19.2 requires
react-dom@19.2— mixed versions fail with obscure hydration errors.