Hi Walter, I’m using ReactDiagram in this way:
<ReactDiagram
ref={refDiagram}
divClassName=‘diagram-waterfall’
initDiagram={initDiagram(onNodeClick, language, makeUniqueKeyFunction, makeUniqueLinkKeyFunction)}
nodeDataArray={toJS(nodeDataArray)}
linkDataArray={toJS(linkDataArray)}
onModelChange={onModelChange}
skipsDiagramUpdate={false}
/>
I’m having a loop of rendering this ReactDiagram and the update on diagramModel caused by
onModelChange.
I am wondering why the onModelChange callback will be called at the first time. Shouldn’t it be called when a user make any changes to the diagram but not the first time?