I'm creating a widget that based on some actions of the user creates new objects, I do this by cloning a template object that is hidden. The problem I'm having is that when I close the widget, it doesn't remember all those new objects it created and when I open it again they are gone.
Those objects, while not very complex, do have a number of parameters that they need stored and so using something like Local/PersistStorage to save each object's parameters and then essentially recreate them when the widget runs again seems awfully inefficient. Is there a way to save the state of the widget together with all its children (the new objects are parented to the main object)? Or perhaps I can store an entire object in local storage, is that possible?