jargon

Frontend & browser·State, data and re-rendering

the item appeared in the list the instant you clicked, before the server had confirmed anything.

Optimistic UI

Also calledoptimistic update

Applying the expected result of a mutation locally and reconciling when the response arrives. It removes the network from the perceived interaction, which for a like button or a checkbox is the whole experience. It requires you to write the rollback path too, and to decide what to show when the rollback happens — a state most implementations forget until someone loses work on a flaky connection.

Commonly confused with