# Optimistic update

Optimistic update: a free component, built on your design tokens, to use for quick, likely-to-work changes such as ticking a task, liking or starring, where waiting for the server would feel slow. A to-do list that shows a change the moment it's made, then quietly puts it back with a reason and a retry if the save fails.

Prompt: Add the OpenDesigner component optimistic-update to this project: https://opendesigner.dev/library/optimistic-update.html. Keep its markup and states; map its --ds-* variables to my tokens.

States: saving, saved, rolled back, retry, hover, focus.

Accessibility: Each task is a real checkbox; the polite status reads each change, and a failed save is read with what happened; the error line sits in the row it belongs to and its Try again button is a real button.

File: https://opendesigner.dev/library/optimistic-update.html

Catalog entry (parts, data limits, states, tokens): https://opendesigner.dev/library/optimistic-update.json

Download: `curl -fsSLo optimistic-update.html https://opendesigner.dev/library/optimistic-update.html`
