Open solhosty opened 6 months ago
The readme example for pre-loading on the +page.server.ts should look like this.
import { trpcServer } from '$lib/server/server'; import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async (event) => { await trpcServer.greeting.ssr({ name: 'tRPC' }, event); };
It currently has trpc imported.
trpc
Created PR for this here. https://github.com/ottomated/trpc-svelte-query/pull/24
The readme example for pre-loading on the +page.server.ts should look like this.
It currently has
trpc
imported.