refs #7136 perf: remove onPaginate event from html

This commit is contained in:
Javier Segarra 2024-03-26 06:18:11 +01:00
parent 9ed8a0b51d
commit 8fc1fa2493
1 changed files with 1 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { ref, toRefs, computed, watch } from 'vue';
import { onMounted } from 'vue';
import { useI18n } from 'vue-i18n';
import FetchData from 'src/components/FetchData.vue';
const emit = defineEmits(['update:modelValue', 'update:options', 'onPaginate']);
const emit = defineEmits(['update:modelValue', 'update:options']);
const $props = defineProps({
modelValue: {
@ -169,7 +169,6 @@ async function onScroll(scrollEv) {
if (direction === 'decrease') return;
if (optionIndex > 0 && to === lastIndex && isLoading.value === false) {
isLoading.value = true;
// emit('onPaginate');
await $props.fetchRef.paginate();
}
}