diff --git a/src/common/runtime/standalone.ts b/src/common/runtime/standalone.ts index 932c5668b587..0305031cc790 100644 --- a/src/common/runtime/standalone.ts +++ b/src/common/runtime/standalone.ts @@ -369,6 +369,9 @@ function makeSubtreeChildrenHTML( const runMySubtree = async () => { const results: SubtreeResult[] = []; for (const { runSubtree } of childFns) { + if (stopRequested) { + break; + } results.push(await runSubtree()); } return mergeSubtreeResults(...results);