pull/7738/head
Rich Harris 7 years ago committed by GitHub
parent 96713f29e0
commit 3f7f4f7809

@ -2,7 +2,7 @@
title: Updating arrays and objects title: Updating arrays and objects
--- ---
Because Svelte's reactivity is triggered by assignments, using array methods like `push` and `splice` won't automatically trigger 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 doesn't do anything.
One way to fix that is to add an assignment that would otherwise be redundant: One way to fix that is to add an assignment that would otherwise be redundant:

Loading…
Cancel
Save