vue js watch multiple properties with single handler
For people who are using Vue 3, the watch API can accept multiple sources import { watch, ref } from 'vue'; export default { setup(() => { const a = ref(1), b = ref('hello'); watch([a, b], ([newA, newB], [prevA, prevB]) => { // do whatever you want }); }); }; Original answer for Vue 2 there is no official way to solve your question( see this).
https://stackoverflow.com/questions/42737034/vue-js-watch-multiple-properties-with-single-handler