A pattern where the interface shows the result of an action right away, before the server confirms it, and rolls it back if the request fails.
Interaction states
Focus ring
Loading state
Debounce
Lazy loading
Dark mode
Micro-interaction
Affordance
Optimistic
Updates right away
Waits for server
Updates after 1.2s