News for hackers. Stuff that matters.
Re:Offline UX Patterns by Spivak on Wednesday October 02, 2024 @02:24PM (#41723591)
> The user could have gotten logged out somehow, or maybe there's a rate limit or something

All your examples are retryable errors in which the prescription is the same: "keep the message queued until it's successful." And when all your failure modes are like this optimistic-no-feedback works. If you have non-retryable errors in your failure modes "Bad Request", "Gone" this pattern can't be used.

Re:Offline UX Patterns by ben-schaaf on Wednesday October 02, 2024 @08:37PM (#41726239)
Not being logged in is not a retryable error.
Re:Offline UX Patterns by Spivak on Wednesday October 02, 2024 @09:28PM (#41726480)
Sure it is, why wouldn't it be? Keep it stored and queued until they log in again. It's the same as being offline.
Re:Offline UX Patterns by xbjfk on Wednesday October 02, 2024 @11:58PM (#41727252)
What if someone else logs in?
Re:Offline UX Patterns by Spivak on Thursday October 03, 2024 @09:51AM (#41730801)
Your local storage, and hence the queue, isn't segmented by user?
Re:Offline UX Patterns by yuliyp on Thursday October 03, 2024 @12:05AM (#41727289)
Sure they're retryable. But those retries might never succeed (user wipes their phone or uninstalls the app or logs out or clears local app data or a buffer fills up to come up with a few scenarios. Either the request didn't matter to the user at all, in which case sure whatever, or at some point they're going to discover that the thing they thought happened didn't actually happen.