trpc-svelte-query icon indicating copy to clipboard operation
trpc-svelte-query copied to clipboard

Readme Example is Incorrect

Open solhosty opened this issue 9 months ago • 1 comments

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.

solhosty avatar May 14 '24 15:05 solhosty