update useNodeConnections
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
let { id }: NodeProps = $props();
|
||||
|
||||
const connections = useNodeConnections({
|
||||
nodeId: id,
|
||||
type: 'target'
|
||||
id: id,
|
||||
handleType: 'target'
|
||||
});
|
||||
|
||||
let nodeData = $derived(
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
|
||||
const { updateNodeData } = useSvelteFlow();
|
||||
const connections = useNodeConnections({
|
||||
nodeId: id,
|
||||
type: 'target'
|
||||
id: id,
|
||||
handleType: 'target'
|
||||
});
|
||||
|
||||
let nodeData = $derived(useNodesData<MyNode>(connections.current[0]?.source));
|
||||
|
||||
Reference in New Issue
Block a user