@nakyuz wrote:
Hi,
I have a question about saving gojs diagram(nodeDataArray,linkDataArray) to database. For example,
Firstly, I add one node or one link to my diagram. Then it makes asynchronous call to save into database. After that, it will return true or false. If it returns false, then the node isn't added to diagram. What is the best place to handle it? or How can I handle it? I use addModelChangedListener
It is my logic:
if(e.isTransactionFinished){
saveToDatabase(model)
}
Posts: 2
Participants: 2