diff --git a/packages/lib/src/scheduler.ts b/packages/lib/src/scheduler.ts index 37464b95..a0d0e208 100644 --- a/packages/lib/src/scheduler.ts +++ b/packages/lib/src/scheduler.ts @@ -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 }