mirror of https://github.com/sveltejs/svelte
fix child context in await blocks with no `then` variable (#4022)
parent
4e51d35dd8
commit
185ff4ae04
@ -0,0 +1,12 @@
|
||||
<script>
|
||||
const promise = new Promise(() => {});
|
||||
const test = [1, 2, 3];
|
||||
</script>
|
||||
|
||||
{#await promise}
|
||||
<div>waiting</div>
|
||||
{:then}
|
||||
{#each test as t}
|
||||
<div>t</div>
|
||||
{/each}
|
||||
{/await}
|
Loading…
Reference in new issue