clarify reactivity tutorial text

Clarify which type of array methods won't trigger reactivity, rather than only giving examples.
pull/7073/head
Stephanie Tuerk 5 years ago committed by tanhauhau
parent 3a238fe057
commit 80832bcfda

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

Loading…
Cancel
Save