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>
|
||||
let clicked;
|
||||
export let clicked;
|
||||
</script>
|
||||
|
||||
<button on:click='{() => clicked = true}'>click me</button>
|
||||
|
||||
{#if clicked}
|
||||
<p>clicked!</p>
|
||||
{/if}
|
||||
{/if}
|
||||
|
Loading…
Reference in new issue