T
tRPC
❓-help
tRPC over WebSocket with Next.js and NextAuth
Solution
Looking for more? Join the community!
T
tRPC
❓-help
T
tRPC
❓-help
Recommended Posts
Server Side Calls in tRPC not working (Next 13, App Router)Where do I make the helper?Project structure ?I greatly appreciate for your insight on this, especially if you're an experienced fullstack dev:
BAccess procedures with same names and same parameters, but in different routers, genericallyMy trpc structure looks something like this:
```
trpc
- router1
- routerX
- proc1
- rDisable trpc route cahce?```ts
import { protectedProcedure, router } from "@/lib/trpc/server/trpc";
import { TRPCError } fromHow do you set headers or cookies in procedure ?Having trouble figuring out how to set headers within a procedure in Next 13.Why use unstable_httpBatchStreamLink in React server components?When using create-t3-app I noticed that they were using `unstable_httpBatchStreamLink` in their `TRPUnsafe return of an `any` typedI am using TRPC with Prisma. I can't seem to get rid of the TypeScript ESlint error.
```
import { zVanilla Client AuthenticationHow to authenticate using the vanilla client? I want to consume this route as the authenticated userGeneric Zod as Input TypeI'm not positive if this is a TRPC question, typescript in general, or failure to understand Zod in Incompatible Router TypesI am working on a trpc implementation for sveltekit.
I attached a screenshot of the createContext nextjs app router, "fs", "os", "zlib-sync" and trpc experimental edge RouterEnvironement: Turborepo + pnpm
What's wrong: when I tried to build nextjs, the error is like this TS4111: Property 'error' comes from an index signature, so it must be accessed with ['error'].I am trying to use trpc with AnalogJs, an Angular meta framework and Nx.
We use the @nx/vite builderTypeError: Cannot read properties of null (reading '_def')As the title says, I get the following:
TypeError: Cannot read properties of null (reading '_def')
I wanna add a localStorage persister, but I'm getting errors for hydration:I wanna add a localStorage persister, but I'm getting errors for hydration:
```js
const persister =error route always getting 500 from trpc error? (next13/approuter)I've got this condition for throwing in my trpc procedure: ```ts
if (!userClerkProfile) {
force-cache planetscale errortrying to use the trpc API from RSCs fails and gives the following error
```log
result: {
data:What is the pattern for unsubscribing from a subscription?Hi there! I'd like to prevent unnecessary connections to a websocket server across multiple renders.How to add a short delay between requestsEnvironment: nextjs 13, node 18, npm, trpc 10.9.0
I'm wondering if it's possible to add a short del