[Vuejs]-Vue3 won't trigger watch when using v-model:prop="data"

4👍

You need to set deep to true when watching an array or object so that Vue knows that it should watch the nested data for changes. Try using this:

    watch(filters, (value) => {
      getAccounts(value);
    },
      {
       deep: true
      }
    );

For reference please review the vue 3 documentation:
https://v3-migration.vuejs.org/breaking-changes/watch.html#_3-x-syntax

Leave a comment