refactor(useNodeConnections): change param names

This commit is contained in:
moklick
2025-01-09 16:08:52 +01:00
parent 7dac54ff44
commit 78f9d4e645
8 changed files with 28 additions and 26 deletions
@@ -14,8 +14,8 @@
$$restProps;
const connections = useNodeConnections({
nodeId: id,
type: 'target'
id: id,
handleType: 'target'
});
$: nodeData = useNodesData<MyNode>($connections.map((connection) => connection.source));
@@ -17,8 +17,8 @@
const { updateNodeData } = useSvelteFlow();
const connections = useNodeConnections({
nodeId: id,
type: 'target'
id: id,
handleType: 'target'
});
$: nodeData = useNodesData<MyNode>($connections[0]?.source);