Skip to content

Commit

Permalink
Improve time to the top of the stash being visible
Browse files Browse the repository at this point in the history
Load just the immediate children of the stash root first, so that we
load sub-trees under each child folder-by-folder.  This allows the UI to
draw the folders that show up near the top of the stash while the
folders further down are still being loaded.
  • Loading branch information
josh-berry committed Aug 11, 2024
1 parent e9e248e commit 2a0e5e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/model/bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ export class Model {
* the stash. */
async loadedStash(): Promise<LoadedFolder | undefined> {
if (!this.stash_root.value) return;
await this.loaded(this.stash_root.value);
return await this.loadedSubtree(this.stash_root.value);
}

Expand Down

0 comments on commit 2a0e5e2

Please sign in to comment.