How to properly type function arguments for procedures?
trpc/react-query
I'm trying to understand how to create a function that receives a procedure and it's input as arguments, so that I can then use that procedure reference to call useQuery
and getQueryKey
within the function:
```...How Do I Ban Users & Invalidate Their JWT Tokens?
useQuery first refetch returns undefined
useState()
for the ID, setting useQuery
's enabled
to false
, and refetch()
whenever I need to get the item.
```ts
const [itemId, setItemId] = useState("");...❌ Failed to collect page data for api trpc [trpc] ❌

SSR with initialData throws error
How to cache trpc server request next.js app router
The property '$request' in your router collides with a built-in method
Trpc calls being uncessarily made
Get Name of All Query Routes or Mutation Routes
Losing Types in VSCode
useUtils vs useQueryClient
useUtils
hook but I'm unsure if I'm doing it correctly? It doesn't seem to work but using useQueryClient
does. Here is some code:
```typescript
const queryClient = useQueryClient();
const services = api.list.services({query: query});...Errors serialization
Build error with trpc-panel
Transferring huge buffer
sharp
and sends it as a buffer to client to render inside canvas. For larger files (62MB) I'm getting a Invalid array length
error from superjson though. Can you think of a way to work around this issue?``ts
protocol.handle('local-raw', request =>
net.fetch(
file:///${request.url.slice('local-raw://'.length)}`)
);...Report progress of mutation
useMutation
in renderrer thread? I know I could use subscription but is this possible with mutation?Discriminated output based on discrimiated input
How to create a React Component that fetch API based on a router from props ?
How to pass through authentication header when using createTRPCProxyClient and RSC?
Integrating tRPC with Clerk Authentication in an Existing Next.js "Turborepo" Project
Help understanding how to deploy tRPC in monorepo.