fix(sidebar): finish database loads across root refreshes

This commit is contained in:
t8y2 committed 2026-09-28 02:46:27 +08:00
1 parent 527b4fb09d
commit 5730b6473d
2 files changed
+73 -2

No files matched your search

@@ -1966,8 +1966,6 @@ export const useConnectionStore = defineStore("connection", () => {
children = dedupeTreeNodeChildrenById(children);
if (shouldClearDescendantLoadedMarkers(parent, children)) {
clearDescendantLoadedChildrenMarkers(parent.id);
// Parent load may still be current; only supersede descendant generations.
treeNodeLoads.invalidateDescendants(parent.id);
}
if (parent.children && parent.children.length > 0) {
const oldMap = new Map(parent.children.map((c) => [c.id, c] as const));