Skip to content

Commit

Permalink
fix: remove reactive load
Browse files Browse the repository at this point in the history
  • Loading branch information
matteopolak committed Jan 29, 2024
1 parent fd84608 commit 0c93abc
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/lib/components/InfiniteScroll.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,9 @@
});
}
function onLoadChange() {
data = [];
done = false;
index = 0;
next();
}
$: if (shouldLoad && !loading && !done) {
next();
}
$: {
load;
onLoadChange();
}
</script>

{#each data as item, i (i)}
Expand Down

0 comments on commit 0c93abc

Please sign in to comment.