npm i svelte-scroll-infinite --save-dev
Name | Type | Description | Required | Default |
---|---|---|---|---|
hasMore |
bool |
Indicator if there are any items to load | No | true |
threshold |
number |
Threshold to call loadMore | No | 100 |
loadMore
- Call with offset⚠️You also want to add the intersection-observer polyfill for full browser support.
MIT © Taras Gordienko