[Vuejs]-Tracking changes with $watch

2👍

This is from the Vue docs:

Note: when mutating (rather than replacing) an Object or an Array, the old value will be the same as new value because they reference the same Object/Array. Vue doesn’t keep a copy of the pre-mutate value.

Leave a comment