mirror of https://github.com/sveltejs/svelte
fix hydrating each else (#4253)
parent
a422d2aba5
commit
7c3e34c00b
@ -0,0 +1,4 @@
|
|||||||
|
<h1>Hello, world</h1>
|
||||||
|
<p>
|
||||||
|
weird
|
||||||
|
</p>
|
@ -0,0 +1,4 @@
|
|||||||
|
<h1>Hello, world</h1>
|
||||||
|
<p>
|
||||||
|
weird
|
||||||
|
</p>
|
@ -0,0 +1,15 @@
|
|||||||
|
<script>
|
||||||
|
export let name = "world";
|
||||||
|
export let array = [];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<h1>Hello, {name}</h1>
|
||||||
|
{#each array as elem}
|
||||||
|
<p>
|
||||||
|
item
|
||||||
|
</p>
|
||||||
|
{:else}
|
||||||
|
<p>
|
||||||
|
weird
|
||||||
|
</p>
|
||||||
|
{/each}
|
Loading…
Reference in new issue