Should prompt for "unsaved changes" when tabs are closed while syncing is not yet complete. #3150
Unanswered
scode
asked this question in
Suggestions
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Have you read the Longevity Statement?
Yep! I like it :)
However I think this is a fairly narrowly scoped feature that can prevent accidental data loss, so is well motivated. I think it also fits well into what I perceive to be the priorities of the product - I see so many signs of valuing avoiding data loss for your customers.
Is your feature request related to a problem? Please describe.
Closing the browser tab in which I am editing a note can potentially cause my recent edits to be lost. It takes a second or two, even under normal circumstances, for edits to fully save. Quickly closing a tab immediately after finishing editing is thus fairly likely to cause the most recent changes to be lost if you forget to explicitly watch and wait for the synching icon to appear and then turn back into a completion indicator.
I would say there are two classes of concerns:
For the record, while I reproduced the lack of an "unsaved changes" dialog multiple times, I only did so for the common case. I did not actually test whether more prolonged inabilities to sync trigger different behavior (largely because I didn't have an easy immediate way of testing it and I figured it's unlikely that the feature exists but only triggers under those conditions).
Describe the solution you'd like
The typical behavior in most web apps is to show a pop-up asking if you really want to close given that there may be unsaved changes. I.e. something like https://www.geeksforgeeks.org/how-to-display-warning-before-leaving-the-web-page-with-unsaved-changes-using-javascript/ (just an example I found by quickly Googling; I lack modern web development experience so have no idea if this is the right mechanism to use).
Describe alternatives you've considered
Not really aware of any. The typical behavior of showing a pop-up seems reasonable to me - I am never annoyed by it, and it is helpful.
Beta Was this translation helpful? Give feedback.
All reactions