GoJs Hangs and too slow

if nodeData[‘data’] comes with huge data. The GOJS application hangs and its too slow …

due to setDataProperty

this.diagram.model.setDataProperty(selectedNode.data, 'data', nodeData['data']);
selectedNode.updateTargetBindings(selectedNode.data);     this.diagram.model.commitTransaction(constants.TRANSACTIONS.UPDATE_MODEL_DATA);

How to fix it. Please help.

We can’t help until we understand your situation. How big is the data? Does everything work well when the data is smaller, and if so, how big? How is the data.data property used? What is the node template? Are Groups involved? What is your Diagram.layout?

Have you read https://gojs.net/latest/intro/performance.html ?