Open History to see the last commit
1import { noop } from '@tanstack/svelte-query'
2import type { PageLoad } from './$types'
3import { postsQueryOptions } from '$lib/queries'
4β
5export const load: PageLoad = async ({ parent, fetch }) => {
6 const { queryClient } = await parent()
7β
8 await queryClient.query(postsQueryOptions(10, fetch)).catch(noop)
9}