useHandleConnections does't updates #1411
Unanswered
allangnutzmans
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Works fine for me: https://codesandbox.io/p/devbox/stoic-stitch-2mr7vj?file=%2Fsrc%2FCustomNode.vue%3A14%2C63&workspaceId=b0b5eb08-9090-4c77-9dc6-14c25ecc472e |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings!
I'm trying to make a custom Node, that reads all the connections made with it, to further process the data...
But for some reason the hook only returns the edges declared on inintialization:
export const initialEdges = [
{ id: 'e1-2', source: '1', target: '2', animated: true },
{ id: 'e1-3', source: '1', target: '3', markerEnd: MarkerType.ArrowClosed },
]
When I try to console.log(targetConnections.value);
or
console.log(targetConnections);
It is not updating the value.
Can you help me find out why the hook is not returning properly?
Beta Was this translation helpful? Give feedback.
All reactions