mirror of https://github.com/sveltejs/svelte
[fix] handle promise rejections for {#await} in SSR (#6790)
parent
e82cf3f6d7
commit
10ce5c95fd
@ -1,9 +1,9 @@
|
|||||||
<script>
|
<script>
|
||||||
let clicked;
|
export let clicked;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<button on:click='{() => clicked = true}'>click me</button>
|
<button on:click='{() => clicked = true}'>click me</button>
|
||||||
|
|
||||||
{#if clicked}
|
{#if clicked}
|
||||||
<p>clicked!</p>
|
<p>clicked!</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in new issue