Skip to content

Commit

Permalink
Delay blocking the UI until the the loading indicator is displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed May 8, 2024
1 parent c98fad1 commit 539248a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/StateManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ export class StateManager {
this.viewSet.add(view);
}

// This helps delay blocking the UI until the the loading indicator is displayed
await new Promise((res) => activeWindow.setTimeout(res, 10));

if (shouldParseData) {
await this.newBoard(view, data);
} else {
Expand Down

0 comments on commit 539248a

Please sign in to comment.