-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
I'm working in Vue 3, and I'm trying to manually trigger the infinite scroll because on small screens, the loader is larger than the screen, so the infinite scroll doesn't render only when scrolling down to the bottom of the page.
I've tried this:
<InfiniteLoading :identifier="infiniteId" @infinite="infiniteProceduresHandler" :firstload="false" ref="infiniteLoadingRef">
<template #complete><span></span></template>
<template #spinner><span></span></template>
</InfiniteLoading>
<script setup lang="ts">
onMounted(async () => {
await nextTick(() => {
infiniteLoadingRef.value?.$emit('infinite', infiniteLoadingRef.value.stateChanger);
});
});
</script>
the problem is that in the infiniteProceduresHandler function it does not recognize $state.
jTiKey, Walackee and Bit0r
Metadata
Metadata
Assignees
Labels
No labels