Improving UX when user edits while a sync is occuring - Database lock #458
Unanswered
alexbarker234
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an app with a periodic background sync which users often use in poor connectivity, making sync times a bit longer.
From what I understand, when the app is syncing it has a lock on any database changes (for the operations queue at least). So if a user was to edit an item and the app tries to save it, it will wait for the sync to finish which could result in a ~10s delay/loading spinner.
My question is, what is the best practice here for managing this to improve the UX?
I have attached a sample recording of a basic todo app with an artificial delay on the server side to showcase this
Screen.Recording.2026-05-29.233920.mp4
Beta Was this translation helpful? Give feedback.
All reactions