React 54 ⚛️ Optimistic UI State Updates with useOptimistic
A user clicks a Like button. The request goes to the server, waits for a response, and only then updates the count. On a fast connection, this feels acceptable. On a slow one, the user stares at an unchanged button, wondering if the click registered. They click again. Now two requests are in flight. This…