From 1c2d19b9c6e18b7e8c845a90e1ad17fbbc75f6a9 Mon Sep 17 00:00:00 2001 From: Richard Harris Date: Wed, 17 Apr 2019 09:13:54 -0400 Subject: [PATCH] update docs --- site/content/docs/02-template-syntax.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/docs/02-template-syntax.md b/site/content/docs/02-template-syntax.md index 76a28a6e12..94c2044224 100644 --- a/site/content/docs/02-template-syntax.md +++ b/site/content/docs/02-template-syntax.md @@ -198,7 +198,7 @@ An each block can also specify an *index*, equivalent to the second argument in --- -If a *key* expression is provided — which must uniquely identify each list item — Svelte will use it to diff the list when data changes, rather than adding or removing items at the end. +If a *key* expression is provided — which must uniquely identify each list item — Svelte will use it to diff the list when data changes, rather than adding or removing items at the end. The key can be any object, but strings and numbers are recommended since they allow identity to persist when the objects themselves change. ```html {#each items as item, i (item.id)}