trpc.io Questions
2
I am currently working on a way to implement the openai-node package into my Next.js application. Because of the long generation times of OpenAI completions, I want to make use of streaming (which ...
Pneumothorax asked 12/4, 2023 at 19:6
3
I am in a bit of a weird situation. For the past 2 weeks I've been trying to debug as to why I am losing types between my projects inside a monorepo. My backend exposes the types that my client use...
Northwest asked 24/10, 2022 at 18:14
2
In my React + TRPC application, I call const { data: promotion } = trpc.promotions.getPromotion.useQuery({ id: promotionId }) in the client-side. promotion's type is detected by looking at the retu...
Marsha asked 20/12, 2022 at 1:25
4
TRPC Problem
i have this tweetRouter with a timeline query, which returns tweets and a NextCursor, but when i try to access useInfiniteQuery in my components a error show up.
**
Property 'useInfini...
Transfusion asked 3/12, 2022 at 3:20
3
Solved
I am using React Typescript and I followed the tRPC docs for the server/client setup but I am getting this error. Does anyone know why this happens when deploying? It works fine when I am using it ...
Dislodge asked 4/2, 2023 at 13:50
2
I am not sure how I would do optimistic updates with trpc? Is this "built-in" or do I have to use react-query's useQuery hook?
So far, I am trying it like so, but it's not working:
const...
Nailbrush asked 3/12, 2022 at 23:45
2
According to tRPCs documentation, the query params have to follow this format
myQuery?input=${encodeURIComponent(JSON.stringify(input))}
I have this procedure:
hello: publicProcedure
.input(z.ob...
Briquette asked 4/1, 2023 at 15:28
2
I was experimenting with tRCP and diligently followed the setup for my Next.js project described in the official docs over here: https://trpc.io/docs/nextjs
However I noticed that a simple componen...
Regenerator asked 16/7, 2022 at 1:10
1
I am planning on building an app using SST and tRPC. I have never used either so I am going through the docs and quick start to better understand the material. I came across an issue where the call...
0
I am currently using a monorepo with Turborepo to store all my microservices code in a single repository, each with a package.json and a tsconfig.json, all of them written in nodejs.
in each tsconf...
Rb asked 30/12, 2022 at 4:58
1
Solved
I'm making a project with the TMDB API and trying to make it super type-safe to reinforce some of the TypeScript stuff I'm learning. I'm using Zod to describe the shape of the data returned by the ...
Cockcroft asked 7/12, 2022 at 19:8
1
Solved
I'm building a form (based on react-hook-form) to filter a list of events by start and end date. The list is retrieved with react-query's useQuery() call. There's a zod-based validation in place (v...
Butadiene asked 2/11, 2022 at 19:14
1
Solved
So I'd like to grab the type from a key of an object within an array in Zod. That array is also nested within an object, just to make things extra difficult.
This is an abstract view of the problem...
Bussy asked 19/7, 2022 at 20:37
1
© 2022 - 2024 — McMap. All rights reserved.