watch
Also written: watch(), Watcher, watchers
A function that runs a callback whenever a ref or getter changes, receiving the new and old value. Use it for actions like saving or fetching; use `computed` to derive values.
Also written: watch(), Watcher, watchers
A function that runs a callback whenever a ref or getter changes, receiving the new and old value. Use it for actions like saving or fetching; use `computed` to derive values.