Using v-calendar version 3.0.3, I'm trying to change the attributes
collection whenever a page is updated. In order to do that, I update attributes
collection inside my update:pages
event, and I notice that the event is called repeatedly. This is illustrated here, if you view the Console, it gets lots of update {counter}
logs: https://codesandbox.io/s/vibrant-sun-7vqvj6?file=/src/App.vue
<template>
<v-calendar :attributes="attributes" @update:pages="updatePages">
</v-calendar>
</template>
<script>
export default {
name: "App",
components: {},
data() {
return {
counter: 0,
attributes: [],
};
},
methods: {
updatePages() {
this.counter++;
console.table("update " + this.counter);
this.attributes = [];
},
},
};
</script>