Currently, it autosaves to localStorage after a user clicks 'next'.
This is not ideal because:
It will save before loading the relevant data on the new section, and not save again until after the user navigates away.
There's nothing that autosaves progress on particularly long sections, like the description text field.
An alternative would be to manually call the autosave function after certain actions, like after loading a parcel, or matching the user to a LV business category. Or set a timer on the application that saves the state of UserData every x seconds?
I figured out how to save the application during window.onbeforeunload, which is pretty good, but it doesn't save user input because that input hasn't been captured yet.
Currently, it autosaves to localStorage after a user clicks 'next'.
This is not ideal because:
An alternative would be to manually call the autosave function after certain actions, like after loading a parcel, or matching the user to a LV business category. Or set a timer on the application that saves the state of UserData every x seconds?