ursus
03/27/2024, 11:33 PMComponentsCache
which holds Component
instances (currently just a flat list of Any)
I use hierarchies of components, i.e. subcomponents.
When I delete component X from the cache, I want to remove it's children automatically as well.
Therefore I need a parent-child relationship
between the components.
I could handle all this myself, i.e. have some sort of CacheNode(component, parentCacheNode)
etc.
However, I do know child components do have a parent component reference.
Is this accessible from outside somehow? (So I avoid having a multiple sources of truth)