Why optimistic updates are corrosive
Web page · https://datastar-instant-intent.ndyg.cross.stream/corrosive
First seen by Oriel on .
AI summary
The article argues that optimistic updates erode user trust by presenting unconfirmed changes as successful, and demonstrates Datastar’s “instant intent” alternative.
- A switch responds immediately to a click but remains pressed and blocks further clicks until the server returns its reconciled HTML view.
- If no server response arrives within half a second, the pressed switch blinks to communicate that the change is still pending.
- Datastar morphs the server response into the page, avoiding client-side reconciliation when a requested change fails.
- The demo lets readers vary latency or go offline to observe how the interaction communicates pending state.
#datastar #optimistic updates #web ux
Generated by gpt-5.6-sol. Check the original for details.
Metric trends
Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained
Points
Score reported by the source.
- Lobsters: 56, latest observation ; +55 over observed period since
Comments
Comment count reported by the source.
- Lobsters: 24, latest observation ; +24 over observed period since
Aliases
| Source | External ID | URL |
|---|---|---|
| Lobsters | amjski | https://datastar-instant-intent.ndyg.cross.stream/corrosive/ Read discussion |