Create an infinite list of items with optimized rendering.
npm i --save-dev svelte-infinite-list # or yarn add -D svelte-infinite-list
<script>
const alphabet = 'abcdefghijklmnopqrstuvwxyz'.split('')
</script>
<AsyncList
class="h-full w-full hide-scroll"
items={alphabet}
itemsLoaded={5}
let:item
>
<p>{item}</p>
</AsyncList>
Whether you use this project, have learned something from it, or just like it, please consider supporting it by buying me a coffee, so I can dedicate more time on open-source projects like this 😉 (personally I prefer hot chocolate but whatever)
Code released under GNU GPLv3 license.
Copyright ©, Olyno.