Integrating hono.js with tRPC in Next.js: Routing and Context Considerations
httpStreaming with NonJsonSerializable

server calls alongside new react integration
swagger to trpc-like interface generator?
swagger-typescript-api
and custom templates, but wondered if anyone did it already or if there is any open source project that does almost the same thing, so I can get better ideas for implementation.
Thanks...makeQueryClient missing default arguments

Sending FormData does not work at all
splitLink
with a condition for isNonJsonSerializable
How would I go about passing an image to the server using tRPC?
How to forward headers (cookies) w/ Tanstack Start
...(typeof window === 'undefined' && headers: getHeaders()})
to the createTRPCClient
call in router.tsx
which works in dev and fails in build (probably because that function isn't supposed to b...A simple example of using SSE and subscriptions
onComplete
, onData
, etc options in a plain subscription got removed and is only available in useSubscription()
? The types from v10 have it https://github.com/trpc/trpc/blob/3bc06d055d3b860d978e9c465bce56fdcf95b71f/packages/client/src/internals/TRPCUntypedClient.ts#L32
Thanks!...tRPC v11 FileLike
Exported variable 'router' has or is using name 'FileLike' from external module "/node_modules/@trpc/server/dist/unstable-core-do-not-import/http/contentTypeParsers" but cannot be named.
Node version: v20.17 using pnpm...Auth Headers in Singleton Pattern
access_token
is only accessible within React land.
Given this, what is the recommended method to include the access_token
in the tRPC headers? Can this be achieved using the Singleton Pattern, or is it necessary to use TRPCProvider
instead?...Use middleware on the router level
v11 types ProcedureBuilder & MiddlewareBuilder
@trpc/server
. With v11 you can only import them via unstable-core-do-not-import
.
I have some properties on a class that should hold a t.middleware
and a t.procedure
. What's the recommended way to type my Middleware
and Procedure
in v11?
```ts...tRPC Monorepo w/ Package Path Aliases
create-t3-turbo
but with path aliases in that API sub package. I see Julius has setup a great monorepo example, however I see in all the packages he is only using relative imports.
Is this possible?...Doubled subscriptions in React with useSubscription
NextJs trpcClient and merged router. But it is returning a html doc instead of json error.
trpcClient
and merged router,
in nextJs v15, app router.
When i implement trpc with api routes /api/v2/user/[user]/route.ts
and utils/trpc nexbacthlink /api/v2/user
. this code snippet is working fine.
...api/v2/[trpc]/route.ts
. It working now with this.getting type error in the code from https://trpc.io/docs/client/react/server-components

Type error when following guide TRPC React query: 'lazy' is declared here.
Type 'CreateRouterInner<RootConfig<{ ctx: object; meta: object; errorShape: DefaultErrorShape; transformer: DefaultDataTransformer; }>, { users: CreateRouterInner<...>; }>' does not satisfy the constraint 'Router<any, any>'.
Types of property '_def' are incompatible.
Property 'lazy' is missing in type 'RouterDef<RootConfig<{ ctx: object; meta: object; errorShape: DefaultErrorShape; transformer: DefaultDataTransformer; }>, { users: CreateRouterInner<...>; }, { ...; }>' but required in type '{ _config: RootConfig<any>; router: true; procedure?: undefined; procedures: any; record: any; lazy: Record<string, LazyLoader<AnyRouter>>; }'.
Type 'CreateRouterInner<RootConfig<{ ctx: object; meta: object; errorShape: DefaultErrorShape; transformer: DefaultDataTransformer; }>, { users: CreateRouterInner<...>; }>' does not satisfy the constraint 'Router<any, any>'.
Types of property '_def' are incompatible.
Property 'lazy' is missing in type 'RouterDef<RootConfig<{ ctx: object; meta: object; errorShape: DefaultErrorShape; transformer: DefaultDataTransformer; }>, { users: CreateRouterInner<...>; }, { ...; }>' but required in type '{ _config: RootConfig<any>; router: true; procedure?: undefined; procedures: any; record: any; lazy: Record<string, LazyLoader<AnyRouter>>; }'.

state change not triggering refetch