In my case after having memberAdded and memberRemoved implemented to group template category: MainGroup, when I load a diagram the memberAdded and memberRemoved gets automatically called.
My loading json diagram.model.nodeDataArray is having a groupnode with category: MainGroup.
I am able perform operations on memberAdded and memberRemoved and save them in my diagram.model.nodeDataArray, but it gets called again once the diagram is reloaded.
example, on my angular project when a member added to group will startTransaction to add a new node and commit and save, everytime I go back and come back to Diagram there are unwanted duplicate nodes added to canvas.
Is there any way of controlling those Events and preventing them from pre loading? I dont want them to start the transactions everytime it is reloaded. If there is a way of prevent such thing from happening may i get a small example for how to implement?