would be -> is

Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>
pull/7073/head
gtmnayan 4 years ago committed by GitHub
parent e83a41c9e6
commit 716d9b9317
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,7 +6,7 @@ Svelte's reactivity is triggered by assignments. Methods that mutate arrays/obje
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` and does not update the rendered page. 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` and does not update the rendered page.
One way to fix that would be to assign `numbers` to itself to tell the compiler it has changed: One way to fix that is to assign `numbers` to itself to tell the compiler it has changed:
```js ```js
function addNumber() { function addNumber() {

Loading…
Cancel
Save