-
|
I fail to understand why the I'd appreciate it if someone could explain to me why, and how can I observe changes to the array. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
If you just want to see changes for debugging, you can use |
Beta Was this translation helpful? Give feedback.
$effectdoes not react to any deeper changes, so if you only specify the array variable, it would only trigger if said variable is re-assigned.If you just want to see changes for debugging, you can use
$inspect(items), which triggers on deeper changes as well. If you need an actual effect, you have to be more specific, e.g. for adding/removing evaluateitems.length, or deeply evaluate the object if you need all kinds of changes.