-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manually trigger infinite #82
Comments
Hi, I tried using |
@timoteiNicsoft hey, I deleted my answer because it wasn't working correctly. |
But I don’t have the initial state because, on small screens, the loader template is larger than the page, and I need to trigger it manually; otherwise, the loader stays on the entire page. It used to work before, but now, with the Vue 3 version, it no longer works. |
vuetify has an infinite scroller that has a manual mode, you could try that one. |
I honestly cant understand why there is a prop for firsload=false but then we cant trigger manually the first load. Just In case its helpful for anyone, my problem was that the data being presented to the loader was really being fetched in a store in another part of the application. But I wanted only to show the first n elements and then load them on the screen using the infinite loader. The problem was that, on page reload, the component mounted before the data had been fetched, so it would display no results. My 'hack' was to make a function to wait for data to be there
Then in the async load function you can just use |
templet <InfiniteLoading @infinite="load" :identifier="infiniteId">
|
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:
the problem is that in the infiniteProceduresHandler function it does not recognize $state.
The text was updated successfully, but these errors were encountered: