watch 33 / 42
Inside watch
we can listen for changes regarding state, props, etc. To keep a watch over a nested property like user.name
you can type the expression as the key like in the example.
If you want the callback to be executed once before the value changed, try:
count: {
handler(newValue, oldValue) { },
immediate: true
}
Note: More use cases are explained in the docs.