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/packages/svelte/tests/runtime-runes/samples/async-derived/main.svelte

14 lines
208 B

<script>
import Child from './Child.svelte';
let { promise, num } = $props();
</script>
<svelte:boundary>
<Child {promise} {num} />
{#snippet pending()}
<p>pending</p>
{/snippet}
</svelte:boundary>