gojs-react. When onModelChange happens, how can I differ model changes made by me programmatically from changed made via UI?

Viewed 55

When I edit the diagram via UI, onModelChange event happens. When I edit model of diagram via code (model.set(node, deletable, false)), onModelChange event occurs.

I want to have a way to ignore second type of changes. Because I do them during handling the first type of changes. So I am getting recursion.

1 Answers
Related