From 80832bcfda4438c770a7e69bfdfe1e6500da0800 Mon Sep 17 00:00:00 2001 From: Stephanie Tuerk Date: Wed, 29 Dec 2021 14:02:03 -0500 Subject: [PATCH] clarify reactivity tutorial text Clarify which type of array methods won't trigger reactivity, rather than only giving examples. --- .../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..3f9428a81a 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 that mutate the array, like `push` and `splice`, won't automatically cause updates. For example, clicking the button doesn't do anything. One way to fix that is to add an assignment that would otherwise be redundant: