I have a custom widget implemented for workshop. This custom workshop has parameters that get emitted to workshop and updated base on the interaction in the widget. I have multiple pages on the workshop. If I navigate to a different page and come back, the whole widget resets and the parameters as well. Is there a way to keep track of the state of the widget and parameter. You can imagine the widget to be a text field that I add text to and the content is connected to a workshop parameter.
I have added a note to our internal feature request for the ability to keep widgets “mounted” to the screen while not displayed.
You may be able to avoid the reset issue by storing state you do not want to reset in Workshop variables, though the widget will still need to reload.
Hey, I currently worked on something similar. Where I used a parameter. But I also had a default value which the parameter would revert to. But considering your case, it is important to save the latest entered value and persist it until the next change is made. Can you save this entered data everytime user makes a change and then when you reload the state to just get the latest.
I use this workaround with saving to a parameter and it is doing the job. Currently it’s manually triggered with a button to “save” to the parameter. I could make it automated too. Thanks for the inputs!
As an update:
Automating that behavior didn’t work. It always results in circular variable dependencies. So I haven’t found an automated solution to this yet.