switch to newer state instead of store
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user