React 19.2 is now available! This release includes Activity, useEffectEvent, React Performance Tracks, partial pre-rendering, and more: react.dev/blog/2025/10...
Post
<Activity> lets you break your app into “activities” that can be controlled and prioritized. It ships with 2 modes: "hidden" and "visible". When "hidden", Activity hides the children, unmounts effects, and defers all updates until React has nothing left to work on. react.dev/reference/re...
useEffectEvent allows you to create "Effect Events" to split “Event” logic out of the Effect that emits it. Similar to DOM events, Effect Events always “see” the latest props and state, so your Effect doesn't need to re-run when the values change. react.dev/learn/separa...
I found some of the limitations put on this a little unexpected, especially the requirement to not pass the callback in props into other components. Well the last time I needed something like useEffectEvent, these limitations would've been no issue, but I wonder if that will generally be the case.
0 reposts1 like