Library / Interaction & UX patterns / Optimistic update
No. 030·noun·also called optimistic UI, instant update

Optimistic update

Showing the result of an action immediately, before the server confirms it, and undoing it only if something fails.

SPECIMEN · LIVE DEMO
Definition

What it is

With an optimistic update, the screen changes the instant you act. Tap Like and the heart fills right away, while the app tells the server in the background. If the server later says no, the change is reversed and an error appears.

It makes apps feel instant, because most actions succeed. The alternative, waiting for the server before showing anything, feels sluggish even on a good connection.

Use it for small, reversible actions (likes, checkboxes, renames). For payments or anything irreversible, wait for confirmation.

Say it like a builder

How to ask for it

Vague

“When I check off a task there's a delay. Make it faster.”

Precise

“Use optimistic updates for checking off tasks: mark the task done in the UI immediately, save in the background, and if the save fails, revert the checkbox and show an error toast.”

Why it works

"Make it faster" might lead to server tuning; "optimistic update" names the UI technique and the prompt defines the failure behavior.

In the wild

You've seen this in

  • ILiking a post on Instagram
  • TChecking off a task in Todoist
  • ISending a message in iMessage, which shows before it's delivered
Usage note

Often confused with