WebIntermediate

Optimistic updating

Also known as optimistic update · optimistic UI · optimistic updates

Updating the visible client state before a server operation is confirmed, then reconciling with the actual result.

In the real world

Show a new comment immediately as pending, then replace it with the saved comment or remove it if the request fails.

Related

Go a little deeper