TLDR Dev · OPINIONS & ADVICE

USEOPTIMISTIC WON'T SAVE YOU

columkelly.com8 min read

Summary from the TLDR Dev newsletter

React 19's useOptimistic hook is helpful for implementing optimistic UI updates, but it is not a complete solution for the complexities introduced by concurrent React. Naive optimistic update implementations lead to race conditions and visual glitches. Even useOptimistic still suffers from issues like failing to prevent race conditions when requests complete out of order.