I am using dynamically created docks. I am adding charts and all sorts into those docks.
I note that when a dock is closed it is simply hidden.
Thus on every render all the docks and contents for every dock ever created is rendered *even if they are closed*.
I cannot see how to intervene in the state loading/saving to ensure closed docks' states aren't saved (or rehydrated).
How do I ensure that when a dock is closed it is destroyed utterly?
thanks
I note that when a dock is closed it is simply hidden.
Thus on every render all the docks and contents for every dock ever created is rendered *even if they are closed*.
I cannot see how to intervene in the state loading/saving to ensure closed docks' states aren't saved (or rehydrated).
How do I ensure that when a dock is closed it is destroyed utterly?
thanks