[Vuejs]-Vue Reactivity, How to Improve nested component dependency structure

0👍

I guess the first call comes from this part

  created() {
    this.searchParams.sortType = "ASEC";
  },

It triggers the watcher and causes the first call to loadDataFromBackend

But why do you set sortType to DESC in data() and change it right after creating to ASEC?

This does not make any sense to me. I would just put ASEC as default value.

Leave a comment