switch to newer state instead of store

This commit is contained in:
2025-07-20 16:08:58 +02:00
parent afd7371cda
commit 12d989fbd2

View File

@ -1,6 +1,6 @@
<script lang="ts">
import LoadingSpinnerComponent from '$lib/components/LoadingSpinnerComponent.svelte';
import { page } from '$app/stores';
import { page } from '$app/state';
interface Props {
moreAvailable?: boolean;
@ -21,7 +21,7 @@
let title = $derived(moreAvailable ? 'Load More' : 'There be dragons!');
let disabled: boolean = $derived(!moreAvailable || isLoading);
const currentCount = $page.url.searchParams.get('count');
const currentCount = page.url.searchParams.get('count');
let nextCount = 10;
if (currentCount) {
const countValue = parseInt(currentCount);