Support @tanstack/react-query 5.4.3
Help with inferring output

Would you recommend tRPC’s usage in this case?
How to limit payload size?
Next.js app directory
Feature or happy accident: error message from `cause` being used as TRPC's error message
When error in tRPC route, the error message is vauge

How to have 2 separate trpc clients for http and websockets?
createTRPCNext
clients, it works fine in pages that don't use useSubscription
but when using it, it looks like only the first trpc client that was initialized will be used, because even if I'm using the websocket client for useSubscription
, I'm getting this error TRPCClientError: Subscriptions should use wsLink
...How to configure context for a standalone server?
next
, although it doesn't help much in setting one up for a standalone server.
How is context set up for a standalone server?...createContext
function but don't define it, and the createContext docs define it but don't use it with createHTTPServer
, so had to put both doc pages together to figure out how to do it for the standalone server...Docs hard to follow with so much `next` code
next
, making it hard to understand what should be done in cases where next
isn't being used. Take the docs on setting up the context
: https://trpc.io/docs/server/context. They're entirely next
focused. To what extent is Vercel's sponsorship affecting the docs?adding information to the QueryKey that is not part of the procedure input
workspaceId
as a required input to each route, read it on the frontend with a custom hook and provide it as input. That works but is a bit cumbersome: We know that the url will always contain the id, and we know how to read from it on the server....orgScopedProjects = trpc.projects.setInputs({ organisationId })
...How to make typed error responses in the context of a specific query?
TRPC File as Input
`refetchOnWindowFocus` with RSC?
refetchOnWindowFocus
work with server components? Seems like it only available for client side.
Perhaps I can use revalidatePath()
to handle this? Not 100% sure what the best/optimal solution is....Multi useSubscription with trpc react -query integration failed to find second sub
Is there any easy way to create a Type for a trpc router
typeof MyRouter
to infer the Router type, my bundler (which is tsup) will bundle db schema types into the d.ts file. If I want my customer to gain the typesafe ability I have to make my db schema info public. Is there any way to define a Router type without typeof MyRouter
type infer? So that I can expose limited info to public.TRPC with Nextjs 13 App Router
Security: DDOS attack prevention for open endpoints tRPC