-
Notifications
You must be signed in to change notification settings - Fork 69
Description
When the client/browser loses the connection it returns to the login screen and waits for a new connection.
Then the it automatically logins again and goes to the last visited page.
The problem is that any unsaved changes are lost.
To be fair, in a normal wired network this will likely not happen but there are also the mobile users with unstable connections in certain situations.
Those users repeatedly reported to me that they have a problem with that, especially when filling out big forms or writing long texts.
At the moment I backup all relevant fields to the local sessionStorage on change and restore them on form load.
But this is a lot of manual coding because I can't iterate those fields and have to do that line by line.
Is there any better way to handle that case?