mirror of https://github.com/sveltejs/svelte
Merge pull request #2596 from EmilTholin/await-empty-block-warnings
Don't show 'Empty block' warnings for non-existent await branchespull/2675/head
commit
006509a0ef
@ -0,0 +1,9 @@
|
|||||||
|
<script>
|
||||||
|
let promise;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#await promise}
|
||||||
|
<p>Loading</p>
|
||||||
|
{:then data}
|
||||||
|
<p>Data: {data}</p>
|
||||||
|
{/await}
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
let promise;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#await promise then data}
|
||||||
|
<p>Data: {data}</p>
|
||||||
|
{/await}
|
@ -0,0 +1 @@
|
|||||||
|
[]
|
Loading…
Reference in new issue