beschrieben
Code: Select all
const onNodesChange = useCallback(
(changes) => setNodes((nodesSnapshot) => {
const updated = applyNodeChanges(changes, nodesSnapshot)
setAddedNode(updated)
return updated
}
),
[setAddedNode],
);
Code: Select all
const onNodesChange = useCallback(
(changes) => setNodes((nodesSnapshot) => {
const updated = applyNodeChanges(changes, nodesSnapshot)
setAddedNode(updated)
return updated
}
),
[setAddedNode],
);