Skip to content

Commit

Permalink
chore(changeset): add
Browse files Browse the repository at this point in the history
  • Loading branch information
bcakmakoglu committed Feb 21, 2024
1 parent 4e526e5 commit ed4ccf4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .changeset/selfish-doors-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
"@vue-flow/core": minor
---

Add node id and node type to return of `useNodesData`.

⚠️This is a small breaking change from the previous implementation!

Previously you would only receive the data object back, now you will receive an object with the data and the node id and type.

```ts
const nodesData = useNodesData(nodeIds);

// Previously
nodesData.forEach((data) => {
// ...
});

// Now
nodesData.forEach(({ id, type, data }) => {
// ...
});
```

0 comments on commit ed4ccf4

Please sign in to comment.