feat: client subscriber gets an AsyncIterable
Author: hugo082Created Jul 18, 2025Updated Aug 9, 2026
Labels✅ accepted-PRs-welcome
Describe the feature you'd like to request
On the vanilla client, being able to an AsyncIterable<T> from a subscription in order to make it compliant with the streamedQuery from tansatck query.
Currently @trpc/tanstack-react-query support for useSubscriptions but implementing the AsyncIterable on the vanilla client would provide the feature to vue user as well.
Describe the solution you'd like to see
Implement the client.myProcedure.subscribe().iterator(): Promise<AsyncIterable<T>>
Describe alternate solutions
Additional information
No response
Contributing
- ♂️ Yes, I'd be down to file a PR implementing this feature!
Source: trpc/trpc