DrizzyDrake
DrizzyDrake
TtRPC
Created by DrizzyDrake on 7/6/2024 in #❓-help
Having great difficulty using Streaming
I wanted to use the stream api with tRPC to handle a response with alot of return values and I looked at the docs for this https://trpc.io/docs/client/react/useQuery#streaming, and when trying to use the example TypeScript gives me the error: Property 'map' does not exist on type 'AsyncGenerator<number, void, unknown>'. and my JavaScript console gives me this error as well, TypeError: _myQuery_data.map is not a function. I am using the T3 Stack with tRPC running Bun 1.1.3 with Next.js v14.2.4
3 replies
TtRPC
Created by DrizzyDrake on 6/24/2024 in #❓-help
Brainstorming how to convert REST api to tRPC
I have a use case where I have a url that looks similar to /stores/:store/items/:items and store could have many sub routes to it. is there any ideas on the best way to convert this into a tRPC route?
3 replies