Update site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/7073/head
Tan Li Hau 4 years ago committed by GitHub
parent c8769f9929
commit 71436a191c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,7 +2,7 @@
title: Updating arrays and objects title: Updating arrays and objects
--- ---
Svelte's reactivity is triggered by assignments. Methods that mutate arrays/objects internally will not trigger updates by themselves. Svelte's reactivity is triggered by assignments. Methods that mutate arrays or objects will not trigger updates by themselves.
In this example, clicking the "Add a number" button calls the `addNumber` function, which appends a number to the array but doesn't trigger the recalculation of `sum`. In this example, clicking the "Add a number" button calls the `addNumber` function, which appends a number to the array but doesn't trigger the recalculation of `sum`.

Loading…
Cancel
Save