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-catch-no-expression/main.svelte

16 lines
221 B

<script>
export let thePromise;
</script>
{#await thePromise catch}
<p>oh no! Something broke!</p>
{/await}
<br />
{#await thePromise}
<p>the promise is pending</p>
{:catch}
<p>oh no! Something broke!</p>
{/await}