Store them outside the widget is your best option.
If they need to live in the widget for some reason, change the visibility of the widget rather than removing it, when you want to hide it.
Store them outside the widget is your best option.
If they need to live in the widget for some reason, change the visibility of the widget rather than removing it, when you want to hide it.