Skip to content

Commit

Permalink
bugfix: queueing node for update that contains future tree-in-progres…
Browse files Browse the repository at this point in the history
…s now replaces that tree with itself
  • Loading branch information
LankyMoose committed Jun 19, 2024
1 parent 611e6ea commit c2c7da7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lib/src/scheduler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ export class Scheduler {
this.currentTreeIndex--
this.treesInProgress.splice(i, 1)
this.treesInProgress.push(node)
} else {
// node contains a tree that has not yet been processed, 'usurp' the tree
this.treesInProgress.splice(i, 1, node)
}
return
}
Expand Down

0 comments on commit c2c7da7

Please sign in to comment.