Example on Website has no Output Types
const users = await trpc.user.list.query();
const users = await trpc.user.list.query();
TRPC Error does not say router path
TRPC-Image
Client receives 200 status when throwing TRPCError
`useSuspenseQuery` with Remix causes weird "Failed to parse URL from /api" errors
useQuery
to useSuspenseQuery
I'm now getting "Failed to parse URL from /api".
errors in my console and server. It seems as though the queries are being run on the server for some reason (where /api
cannot be parsed because window.location
is not available).
Any ideas what's going on? Is this intended behaviour?...Trying to create a minimal streaming example but I'm getting iterable is not async iterable
Getting nitro adapter to work
npx giget@latest nitro nitro-app --install
...unstable_httpBatchStreamLink with React Native (Expo)
unstable_httpBatchStreamLink
work with React Native (using Expo)?
I tried multiple solutions, but none of them worked.
Here is what is says in the docs :
```...Can trpc be used when both app and pages router is used at once ?
SSR in Remix/React Router
Simplifying SSR (e.g. in Next.JS)
useQuery
is being SSR (e.g. checking typeof window === 'undefined'
) and therefore await
the fetch call automatically and then pass it to initialData
to rehydrate on the client?...Type mismatch with queryClient prop of @trpc/react-query
Getting type error for AppRouter
Cloudflare worker subscriptions/websockets
Prevent client tsc from typechecking the server
import type { AppRouter } from "../../src/index.ts";
the tsc for the browser client tries to check the node server and throws errors like
```...Skew protection Vercel TRPC
Infer TRoot and TProcedure for specific procedures (polymorphism)
use cases
Why Trpc duplicates `shape` and `data` as duplicated JSON field on errors in `errorFormatter`?