Skip to content

Commit 522642d

Browse files
chore: add keys to {#each} blocks (#466)
* chore: add keys to {#each} blocks * Create selfish-houses-retire.md --------- Co-authored-by: Manuel <[email protected]>
1 parent 30d1ca0 commit 522642d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sv": patch
3+
---
4+
5+
chore: add keys to `{#each}` blocks

packages/create/templates/demo/src/routes/sverdle/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,9 @@
179179
back
180180
</button>
181181

182-
{#each ['qwertyuiop', 'asdfghjkl', 'zxcvbnm'] as row}
182+
{#each ['qwertyuiop', 'asdfghjkl', 'zxcvbnm'] as row (row)}
183183
<div class="row">
184-
{#each row as letter}
184+
{#each row as letter, index (index)}
185185
<button
186186
onclick={update}
187187
data-key={letter}

0 commit comments

Comments
 (0)