I have different container items and I would like to make not visible when all of their children are not visible.
Dynamically, some code is parsing all the items recursively and set them visible or not visible depending on some filter (like a search input). The container items are ignored by this filtering.
After that filtering, how can I detect the visibility has changed and update my container items accordingly ?
So far I have this code but I need this to be executed every time the children visibility is changed :
visible: visibleChildren.size > 0