Skip to content

Commit 4a6a953

Browse files
docs: document NaN limitation for #key blocks
1 parent fcbd3e3 commit 4a6a953

File tree

1 file changed

+2
-0
lines changed
  • documentation/docs/03-template-syntax

1 file changed

+2
-0
lines changed

documentation/docs/03-template-syntax/04-key.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ It's also useful if you want a transition to play whenever a value changes:
2222
<div transition:fade>{value}</div>
2323
{/key}
2424
```
25+
26+
> [!NOTE] `NaN` is not a valid key value, because JavaScript's `NaN !== NaN` prevents the block from rendering correctly.

0 commit comments

Comments
 (0)