How to use `localLink` (`unstable_localLink`)
trpc/server/index.ts
(usually server.ts
) I added the following:
```ts
globalThis.$getTRPCServerSideTerminatingLink = () => unstable_localLink({...tRPC sends duplicate header
Customizing the TRPCError type
Output validator for Async generators on a streaming procedure using Zod
MaybePromise<T>
when I have AsyncGenerator<T>
and there doesnt seem to be anything in zod (apart from brute forcing through custom, which defeats the purpose) to make this work.
Keen to here anyones thoughts!
```...traefik reverse proxy with trpc
500 Internal Server Error error="net/http: HTTP/1.x transport connection broken: too many transfer encodings: [\"chunked\" \"chunked\"]"
Get procedure path programatically?
How to make sure I don’t bundle my entire backend into my web app?
Did anyone succeed at file upload with the fastify adapter?
sanitizing output based on output schema
.output
will only ensure the schema is respected, but will not sanitize output on the go (even tho it could be possible with a z.strictObject()
):
```ts
.output(someSchema) // <- does not sanitize data
// ---...middleware executed twice? should i use `experimental_standaloneMiddleware`?
how to best test trpc?
tRPC v11 with Tanstack React Query - queryOptions/mutationOptions methods missing
queryOptions
and mutationOptions
methods are not available on my tRPC utilities.
Setup:
- Next.js 15.3.5 with App Router...How to display server router docs on the client hover
Tanstack React Query and TRPC package version incompatibility
tRPC + Nextjs: redirect on next error with new TanStack Query integration
Nextjs, Expo react native, Trpc Help
Is it possible to use tRPC with Deno over Websockets only?
Tprc Tanstack integration types
export function useProjectBySlug(slug: string, options?: any) {
const queryOptions = trpc.projects.getBySlug.queryOptions({ slug }, options);
return useSuspenseQuery(queryOptions);
}
...Migrating v11 from classic client to TanStack Query: “Error: experimental_prefetchInRender feature ”

types not working if input provided