Mikescops / vue-virtual-grid

🖼️ Vue Virtual Grid Rendering
https://www.npmjs.com/package/vue-virtual-grid
MIT License
51 stars 16 forks source link

Infinite scroll is made async and debounced #2

Closed Mikescops closed 3 years ago

Mikescops commented 3 years ago

It is likely that loading more content is an async call, so I made it a default.

In case someone wants to do it with a sync function, they should return immediately in their code with Promise.resolve([content]) (depending on their implementation).

Also i used computed data instead of refreshing all values everytime.