Skip to content

Commit

Permalink
get context at start of if update block instead of at the end, fixes s…
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseskinner committed Oct 15, 2020
1 parent 2d5bf24 commit 9778421
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/compile/render_dom/wrappers/AwaitBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class AwaitBlockBranch extends Wrapper {
`);
this.block.chunks.declarations.push(b`${get_context}(#ctx)`);
if (this.block.has_update_method) {
this.block.chunks.update.push(b`${get_context}(#ctx)`);
this.block.chunks.update.unshift(b`${get_context}(#ctx)`);
}
}
}
Expand Down

0 comments on commit 9778421

Please sign in to comment.