Skip to content

Recover input after lost connection #85

@TechInterMezzo

Description

@TechInterMezzo

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?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions