Tasklist - Form data of localStorage is easily lost

Currently data entered into forms and then saved lands in the browsers local Storage.
But this data is quite easily lost, since if the user navigates away from the current task it seems to instantly get deleted.
e.g. select task 1 -> type text -> save -> select task 2 -> select task 1, it’s gone.

It would be neat if this weren’t be the case (… okok it would save me from trying to workaround this at some point)

That should not be the case. The localStorage key for a task contains the tasks ID so that data is not lost even if the user switches the task (or even logs out).

Do you already have an idea where the data would get deleted?

Sry, you are correct. I didn’t realize the issue was caused by our self made embedded task forms.

In case someone else has the same issue, in my case it came from doing the angular scope binding during camForm.on “variables-fetched” and not “variables-restored”.

1 Like