From 51fe7d402d0ad9b988aec39b7ae9837b52977816 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 20d0f05eeb..94cf0ff3d6 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 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 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: