We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0f602a1 + 05e259c commit 98c76ecCopy full SHA for 98c76ec
site/content/tutorial/02-reactivity/04-updating-arrays-and-objects/text.md
@@ -30,3 +30,12 @@ function addNumber() {
30
numbers[numbers.length] = numbers.length + 1;
31
}
32
```
33
+As a rule of thumb _The name of the reactive variable must appear on the left side of the equals to react to assignments._
34
+
35
+For example, this case wouldn't work:
36
+```js
37
+const childRef = obj.foo;
38
+childRef.bar = "new value";
39
+```
40
41
+And to make it work it would be needed to force an update to object with `obj = obj`.
0 commit comments