switch to newer state instead of store
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import LoadingSpinnerComponent from '$lib/components/LoadingSpinnerComponent.svelte';
|
import LoadingSpinnerComponent from '$lib/components/LoadingSpinnerComponent.svelte';
|
||||||
import { page } from '$app/stores';
|
import { page } from '$app/state';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
moreAvailable?: boolean;
|
moreAvailable?: boolean;
|
||||||
@ -21,7 +21,7 @@
|
|||||||
let title = $derived(moreAvailable ? 'Load More' : 'There be dragons!');
|
let title = $derived(moreAvailable ? 'Load More' : 'There be dragons!');
|
||||||
let disabled: boolean = $derived(!moreAvailable || isLoading);
|
let disabled: boolean = $derived(!moreAvailable || isLoading);
|
||||||
|
|
||||||
const currentCount = $page.url.searchParams.get('count');
|
const currentCount = page.url.searchParams.get('count');
|
||||||
let nextCount = 10;
|
let nextCount = 10;
|
||||||
if (currentCount) {
|
if (currentCount) {
|
||||||
const countValue = parseInt(currentCount);
|
const countValue = parseInt(currentCount);
|
||||||
|
Reference in New Issue
Block a user