added changelog
This commit is contained in:
@@ -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) {
|
if (!shallowNodeData(nextNodesData, prevNodesData) || initialRun) {
|
||||||
prevNodesData = [...nextNodesData];
|
prevNodesData = nextNodesData;
|
||||||
set(isArrayOfIds ? nextNodesData : nextNodesData[0] ?? null);
|
set(isArrayOfIds ? nextNodesData : nextNodesData[0] ?? null);
|
||||||
initialRun = false;
|
initialRun = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user