How to check websocket is alive from client?
Call and await multiple mutations within one clientside procedure
mutateAsync
return type!Attempted import error: 'hashQueryKey'
./node_modules/@trpc/react-query/dist/createHooksInternal-063195fc.mjs
Attempted import error: 'hashQueryKey' is not exported from '@tanstack/react-query' (imported as 'hashQueryKey').
./node_modules/@trpc/react-query/dist/createHooksInternal-063195fc.mjs
Attempted import error: 'hashQueryKey' is not exported from '@tanstack/react-query' (imported as 'hashQueryKey').
Is there a way to call procedures more directly without a router?
Issue creating server - v11
I can't read the value of the env variable, it returns undefined
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1265676169110618112/image.png)
Next.js/tRPC Prefetch w/ HydrateClient "Error occurred prerendering page"
helpers.dehydrate()
...
When I run this code with pnpm dev
, it works fine, but when I go to pnpm build
, I am getting
```
Error occurred prerendering page "/queue". Read more: https://nextjs.org/docs/messages/prerender-error...async
... i.e:
Broken:
```ts
export default function QueuePage() {...Compiling Frontend
How do I return a plain text in trpc?
is there a definitive solution to the slow language server/compilation issue?
Pass query as prop with ProcedureUseQuery
How can I set a Cookie from the server (for the login)?
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1263565412130488411/image.png)
How to get access to the types generated by the server in the frontend (React)?
data: any
to the correct type?
```
import { trpc } from "../utils/trpc";
...Types not being shared with the frontend
createTRPCProxyClient
solved this problemHow can you extract the mutation type signature?
How to treat mongoose/mongodb ObjectIDs as their serialized string values on the frontend?
Union context type to allow incremental upgrade to App router
![No description](https://answer-overflow-discord-attachments.s3.us-east-1.amazonaws.com/1262744712734048276/CleanShot_2024-07-16_at_08.13.042x.png)
Transform server response on the client before caching
TypeError: Cannot read property 'useState' of null
@trpc/client
in react. I am using Expo React Native
and Expo App Router
here is the provider
```tsx
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";...Procedure shows as `any` unless it's a mutation