Just upgraded to React 19.2 and wanted to share a couple of things that caught my attention:
1. Improved useOptimistic Hook
The updates to useOptimistic are really nice. It now handles rollbacks more gracefully when mutations fail, and the API feels more intuitive. If you’re building apps with optimistic UI updates, this is worth exploring.
const [optimisticState, addOptimistic] = useOptimistic(
state,
(current, optimisticValue) => {
// Cleaner error handling built-in now
return [...current, optimisticValue];
}
);
2. Better DevTools Performance Profiling
The React DevTools got some love in this release. The performance profiler is noticeably faster and the flame graphs are easier to read. Makes debugging render issues much less painful.
3. Refined Server Actions Error Boundaries
Error handling for Server Actions feels more predictable now. The error boundaries work better with streaming SSR, which was a pain point in earlier versions.
Nothing groundbreaking, but these quality-of-life improvements add up. Anyone else upgraded yet? What are you liking (or not liking)?