vue-virtual-collection
vue-virtual-collection copied to clipboard
How to handle infinite scroll triggering?
I would like to implement an infinite scroll ui with this library. And would like to know how can I know it's time to trigger another fetch. I seem there are no callback for this use case.
Sorry for my late.
You may not need callback because Vue is a MVVM framework. You can change collection
directly after your fetch is completed.
I just to have an event for notifying the collection is almost scrolled to the bottom of the last element is being visible so I can do a fetch.
Right now I use scroll listener on the component or append a pseudo-component at the end of the list to act as a trigger to trigger a fetch.
If the library can provide the event then I don't have to implement that.