added changelog

This commit is contained in:
peterkogo
2024-10-08 12:03:22 +02:00
parent fba54e669d
commit 51f08aaca5
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@xyflow/svelte': patch
---
Fixed hook useNodesData unexpectedly returning undefined
@@ -41,7 +41,7 @@ export function useNodesData(nodeIds: any): any {
}
if (!shallowNodeData(nextNodesData, prevNodesData) || initialRun) {
prevNodesData = [...nextNodesData];
prevNodesData = nextNodesData;
set(isArrayOfIds ? nextNodesData : nextNodesData[0] ?? null);
initialRun = false;
}