I would like to have a confirmation on this before I build something that goes the wrong direction.
An app needs a lot of initial values for various items. But those values will change depending on the user's actions. When leaving the app and later return, the last state of the values should be restored rather than the initial one's.
I save a dictionary with the initial values as a JSON file and import it as a project file. On start of layout that JSON file is requested using Ajax.Request(project file) and then loaded via Dictionary.Load(Ajax.LastData)
When user changes values I store the dictionary's JSON string as a value to a key in web storage.
Next time the user starts the app, an on-start-of-layout-event checks if the key exists in web storage via local-key-exists-condition. If true I load the key's value to the dictionary via dictionary.Load(webstorage.localvalue(key))
Can anyone confirm that this is correct (without spending hours on testing it, just based on experience)? Is there a simpler way?