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/if-block-component-store-fu.../main.svelte

12 lines
250 B

<script>
import {writable} from 'svelte/store';
import Widget from './Widget.svelte';
let a = (writable({}));
let b = () => true;
</script>
<!-- if (reactive && non-reactive) -->
{#if $a || b() }
<Widget></Widget>
{:else}
<pre>fail</pre>
{/if}