T
TanStack13mo ago
xenial-black

TRPC Integration?

What's the best way for a TRPC user to migrate over? It seems like I should be able to wrap up the precedures in server actions, but I'm not sure how to cover hydration/dehydration in an SSR pass. Is there a recommended approach? (This may be incomplete/upcoming in which case I'm happy to collaborate with others on this)
11 Replies
correct-apricot
correct-apricot13mo ago
We’re working on it. It requires api routes, which we’re almost finished with. After that it takes orchestration with the router is all. Probably don’t even need server functions.
xenial-black
xenial-blackOP13mo ago
Any channels I can get involved with? The main feature I want is async iterators. I think you'll have a bunch of folks looking for this for AI applications.
correct-apricot
correct-apricot13mo ago
To contribute?
xenial-black
xenial-blackOP13mo ago
Yes
correct-apricot
correct-apricot13mo ago
I think here is as decent as any. As soon as @Sean Cassiere And I ship api routes, we can work on the ultimate trpc example
xenial-black
xenial-blackOP13mo ago
Sounds great!
xenial-black
xenial-blackOP13mo ago
Not that anyone needs to read it, but here was the original issue for TRPC: https://github.com/trpc/trpc/issues/4477 This is the core functionality I want to make sure works.
GitHub
feat: Streaming Mutations / Queries · Issue #4477 · trpc/trpc
Describe the feature you'd like to request Many upstream APIs (e.g. OpenAI's GPT) stream responses to the client. It would be great if TRPC supported such streaming requests. Describe the s...
correct-apricot
correct-apricot13mo ago
@julius
xenial-black
xenial-blackOP13mo ago
The API route abstraction will need to be able to account for streaming responses to make this work.
correct-apricot
correct-apricot13mo ago
It should be able to stream just fine
equal-jade
equal-jade13mo ago
yea should be fine wit htrpc

Did you find this page helpful?