From 1527eec1408cd49f4425e254fd0b88bb1de51e12 Mon Sep 17 00:00:00 2001 From: tanhauhau Date: Sat, 16 Apr 2022 10:37:30 +0800 Subject: [PATCH] add 'alone' to hint that mutate without assignment do not trigger reactivity --- .../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 3f9428a81a..732bb96b81 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, 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 doesn't do anything. One way to fix that is to add an assignment that would otherwise be redundant: