From 13e2d22ea3c349b18fe7ec5c2b6a5ea9d83b2eba Mon Sep 17 00:00:00 2001 From: Gabor Szabo Date: Wed, 26 Jan 2022 18:29:09 +0200 Subject: [PATCH] clarification --- .../02-reactivity/04-updating-arrays-and-objects/text.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md index 732bb96b81..2c1e5291c0 100644 --- a/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md +++ b/site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md @@ -2,7 +2,7 @@ title: Updating arrays and objects --- -Because Svelte's reactivity is triggered by assignments, using array methods that mutate the array alone, like `push` and `splice`, won't automatically cause updates. For example, clicking the button doesn't do anything. +Because Svelte's reactivity is triggered by assignments, using array methods that mutate the array alone, like `push` and `splice`, won't automatically cause updates. For example, clicking the button calls the `addNumber` function, but doesn't trigger the recalculation of `sum` and does not update the rendered page. One way to fix that is to add an assignment that would otherwise be redundant: