refactor(nodes): only use node internals
This commit is contained in:
@@ -147,6 +147,7 @@ const BasicFlow = () => {
|
||||
};
|
||||
|
||||
const onNodesChange = useCallback((changes: NodeChange[]) => {
|
||||
console.log('node change', changes);
|
||||
setNodes((ns) => applyNodeChanges(changes, ns));
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user