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-state-new-branch-2/Child.svelte

11 lines
326 B

<script>
let { x } = $props();
</script>
<!-- checks direct source, indirect derived, block effect, async effect -->
{x}
{JSON.stringify(x)}
{#if x === 'universe'}universe{:else}world{/if}
{#if JSON.stringify(x) === '"universe"'}universe{:else}world{/if}
{await Promise.resolve(x)}
{await Promise.resolve(JSON.stringify(x))}