add 'alone' to hint that mutate without assignment do not trigger reactivity

pull/7073/head
tanhauhau 4 years ago
parent 80832bcfda
commit 1527eec140

@ -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:

Loading…
Cancel
Save