In my scenario, I have this kind of node hierachy:
nodeA is the only node that the end-user can directly interact with (select, delete, etc.).
I added a callback to the viewer to know when nodes are deleted (CallbackMap.subtreeDeleted). If I delete nodeA, then my callback is triggered as expected, but I only get the root node ID of the removed subtree.
However, since I get the notification after the node is deleted, I cannot query the model to know what sub nodes were also deleted.
Is there a way I can setup a callback to be triggered when a node is “about to” be deleted? Or is there a way I can query the Communicator model to know what is the entire subtree that was removed?