diff --git a/src/compiler/compile/render_dom/wrappers/AwaitBlock.ts b/src/compiler/compile/render_dom/wrappers/AwaitBlock.ts index a1cfa03d25..637d32676c 100644 --- a/src/compiler/compile/render_dom/wrappers/AwaitBlock.ts +++ b/src/compiler/compile/render_dom/wrappers/AwaitBlock.ts @@ -232,7 +232,7 @@ export default class AwaitBlockWrapper extends Wrapper { const dependencies = this.node.expression.dynamic_dependencies(); - const update_child_context = b`@update_child_context(${info}, #ctx, #dirty)`; + const update_await_block_branch = b`@update_await_block_branch(${info}, #ctx, #dirty)`; if (dependencies.length > 0) { const condition = x` @@ -249,7 +249,7 @@ export default class AwaitBlockWrapper extends Wrapper { if (${condition}) { } else { - ${update_child_context} + ${update_await_block_branch} } `); } else { @@ -260,7 +260,7 @@ export default class AwaitBlockWrapper extends Wrapper { } else { if (this.pending.block.has_update_method) { block.chunks.update.push(b` - ${update_child_context} + ${update_await_block_branch} `); } } diff --git a/src/runtime/internal/await_block.ts b/src/runtime/internal/await_block.ts index f279221487..ea6e8a187f 100644 --- a/src/runtime/internal/await_block.ts +++ b/src/runtime/internal/await_block.ts @@ -84,7 +84,7 @@ export function handle_promise(promise, info) { } } -export function update_child_context(info, ctx, dirty) { +export function update_await_block_branch(info, ctx, dirty) { const child_ctx = ctx.slice(); const { resolved } = info;