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-module/main.svelte

16 lines
250 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>
{console.log(`outside boundary ${num}`)}