DrizzyDrake
Explore posts from serversHaving 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