You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/await-then-no-context/main.svelte

13 lines
182 B

<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}