[Vuejs]-Vue.js : infinite loop update in v-for / v-if

0👍

I find solution…

export let currentType = 99999;

And

testTypeOrder(type, title){
    if(type == currentType){
        //console.log(title + ' => ' + type + ' == ' + this.currentType + ' return false');
        return false;
    }else{
      //console.log(title + ' => ' + type + ' != ' + this.currentType + ' return true');
      currentType = type;

      return true;
    }
  },

It was simple…
I hope it will helps someone, one day 🙂

Leave a comment