fix(react): default node updates closes #4202

This commit is contained in:
moklick
2024-04-29 13:35:58 +02:00
parent 8c784c2035
commit 7501eace79
5 changed files with 37 additions and 26 deletions
+2 -2
View File
@@ -74,7 +74,7 @@ const createStore = ({
// new dimensions and update the nodes.
updateNodeInternals: (updates) => {
const {
onNodesChange,
triggerNodeChanges,
fitView,
nodeLookup,
parentLookup,
@@ -120,7 +120,7 @@ const createStore = ({
if (debug) {
console.log('React Flow: trigger node changes', changes);
}
onNodesChange?.(changes);
triggerNodeChanges?.(changes);
}
},
updateNodePositions: (nodeDragItems, dragging = false) => {