Hacker News new | ask | show | jobs
by dutchCourage 4 days ago
Instant navigation, instant actions and an app you can use offline. I'd hate for my to-do list or my podcast app to have to make network calls for any action I take. It doesn't mean that all actions should happen offline. Some actions are inherently online.

Take the case of an email app: Mark as read: complete the action offline and sync later. Move to folder: same. Send an email: very much an online action, save the draft and send later. Don't show an email as sent if it isn't.

1 comments

> Don't show an email as sent if it isn't.

In my personal experience, a lot of devs who practice optimistic updates actually would show you the email as sent, even though they just put it in a local queue for later sync, and if things go wrong they rollback like "whoopsy, it wasn't, nevermind". If you don't do that - good, you're not using optimistic UI by my definition :)

See https://romshark.github.io/ux-immediate-intent/#takeaway-5