vishalbalaji / trpc-svelte-query-adapter

A simple adapter to use `@tanstack/svelte-query` with trpc, similar to `@trpc/react-query`.
71 stars 6 forks source link

An error in documentation #23

Closed Schmell closed 6 months ago

Schmell commented 6 months ago

Hey. Nice package. I noticed an error in your documentation,.

export function trpc(queryClient?: QueryClient) {
  svelteQueryWrapper<Router>({
    client,
    queryClient
  });
};

You need to return the svelteQueryWrapper

export function trpc(queryClient?: QueryClient) {
 return svelteQueryWrapper<Router>({
    client,
    queryClient
  });
};
vishalbalaji commented 6 months ago

@Schmell You are right, thanks for pointing this out!