trpc-svelte-query
trpc-svelte-query copied to clipboard
Readme Example is Incorrect
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.