From d94710a632c5013f00ac8ae0430a5a46d4635379 Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Thu, 28 Mar 2024 22:10:12 -0400 Subject: [PATCH] intersection observer --- .../components/documents/ResultsList.svelte | 35 ++++++++++++++++++- src/routes/app/+page.svelte | 1 + 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/src/lib/components/documents/ResultsList.svelte b/src/lib/components/documents/ResultsList.svelte index a1a679fe3..ffc3dd0eb 100644 --- a/src/lib/components/documents/ResultsList.svelte +++ b/src/lib/components/documents/ResultsList.svelte @@ -8,6 +8,7 @@
@@ -56,7 +89,7 @@

{$_("noDocuments.queryNoResults")}

{/each} -
+
{#if next} {/if} diff --git a/src/routes/app/+page.svelte b/src/routes/app/+page.svelte index 2a1f76f74..8fb0cb914 100644 --- a/src/routes/app/+page.svelte +++ b/src/routes/app/+page.svelte @@ -24,6 +24,7 @@ results={results.results} count={results.count} next={results.next} + auto /> {/await}