From 5275c08780291b5b3a7a48a36818cd59d0db4a16 Mon Sep 17 00:00:00 2001 From: Simon H <5968653+dummdidumm@users.noreply.github.com> Date: Tue, 21 Feb 2023 13:13:29 +0100 Subject: [PATCH] Apply suggestions from code review --- .../tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte | 2 +- .../tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte index cd38c46bd0..e91026fb98 100644 --- a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte +++ b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-a/Thing.svelte @@ -15,7 +15,7 @@ // ...but the "emoji" variable is fixed upon initialisation of the component const emoji = emojis[name]; - // when you remove first thing, it will remove items at the end of the block + // observe in the console which entry is removed onDestroy(() => { console.log('thing destroyed: ' + name) }); diff --git a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte index cd38c46bd0..e91026fb98 100644 --- a/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte +++ b/site/content/tutorial/04-logic/05-keyed-each-blocks/app-b/Thing.svelte @@ -15,7 +15,7 @@ // ...but the "emoji" variable is fixed upon initialisation of the component const emoji = emojis[name]; - // when you remove first thing, it will remove items at the end of the block + // observe in the console which entry is removed onDestroy(() => { console.log('thing destroyed: ' + name) });