0

How can we $watch multiple data properties by calling a single callback? I tried something like this.

  data(){return{

    firstValue:[],
    secondValue:[],
    }

    },
    watch:{
    // I want to watch both `firstValue` and `secondValue` by a single function :function(){
    do somethings}
}
QuickSilver
  • 3,915
  • 2
  • 13
  • 29
Emın
  • 21
  • 6
  • 2
    check this: https://stackoverflow.com/questions/42737034/vue-js-watch-multiple-properties-with-single-handler – Majed Badawi Jun 14 '20 at 19:38
  • 1
    Does this answer your question? [vue js watch multiple properties with single handler](https://stackoverflow.com/questions/42737034/vue-js-watch-multiple-properties-with-single-handler) – Simone Zabberoni Jun 14 '20 at 22:24
  • check this Github link once: https://github.com/vuejs/vue/issues/844 – abhay Jun 16 '20 at 13:27

0 Answers0