Need help in understanding how useHandleConnections
and useNodesData
work
#1354
-
I am trying to understand how I paste the example's OutputNode.vue here and then explain what I try to achieve:
I expected to be able to use For example, here is my adjusted OutputNode.vue, where I add a button for logging to console:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Because these composables return computed values, which are auto-unwrapped in templates but not in a script-tag. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the explanation! |
Beta Was this translation helpful? Give feedback.
Because these composables return computed values, which are auto-unwrapped in templates but not in a script-tag.
Meaning
const nodesData = useNodesData(...)
returns acomputed(...)
therefore the usage isnodesData.value.data
and notnodesData.data