diff --git a/src/lib/components/publications/Publication.svelte b/src/lib/components/publications/Publication.svelte index d30e588..e16377f 100644 --- a/src/lib/components/publications/Publication.svelte +++ b/src/lib/components/publications/Publication.svelte @@ -993,7 +993,7 @@ let lastUpwardLoadTime = 0; let isUpdatingObserver = false; - let isLoadingUpward = false; + let isLoadingUpward = $state(false); let scrollObserver: IntersectionObserver | null = null; let observedFirstSectionAddress: string | null = null; let observerUpdateTimeout: number | null = null; @@ -1493,7 +1493,7 @@ class="flex justify-center items-center my-2 min-h-[20px] w-full" data-sentinel="top" > - {#if isLoading && leaves.length > 0} + {#if isLoadingUpward && leaves.length > 0}
Loading previous sections... @@ -1687,7 +1687,7 @@