diff --git a/src/lib/components/InfiniteScroll.svelte b/src/lib/components/InfiniteScroll.svelte index f052c30..c491d82 100644 --- a/src/lib/components/InfiniteScroll.svelte +++ b/src/lib/components/InfiniteScroll.svelte @@ -38,22 +38,9 @@ }); } - function onLoadChange() { - data = []; - done = false; - index = 0; - - next(); - } - $: if (shouldLoad && !loading && !done) { next(); } - - $: { - load; - onLoadChange(); - } {#each data as item, i (i)}