tRPCttRPC
Powered by
Michael SchaufelbergerM
tRPC•2y ago•
67 replies
Michael Schaufelberger

Can I use the "Streaming with Server Components" strategy with tRPC?

https://tanstack.com/query/latest/docs/framework/react/guides/advanced-ssr#streaming-with-server-components
has a neat example on how to prefetch queries without having to await them. Is this something we can use with tRPC?
Advanced Server Rendering | TanStack Query React Docs
Welcome to the Advanced Server Rendering guide, where you will learn all about using React Query with streaming, Server Components and the Next.js app router.

You might want to read the Server Rendering & Hydration guide before this one as it teaches the basics for using React Query with SSR, and Performance & Request Waterfalls as well as Pre...
Advanced Server Rendering | TanStack Query React Docs
Solution
https://github.com/trpc/trpc/pull/5451
GitHub
feat(react-query): next-app-router example with prefetch helpers by...
More integrated version of t3-oss/create-t3-turbo#877
adds a wrapped proxy around createCaller that puts the promise into a server-side QueryClient. devs can then choose to wrap some client compone...
feat(react-query): next-app-router example with prefetch helpers by...
Jump to solution
tRPCJoin
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,015Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements
Next page

Similar Threads

Can someone explain to me the use of tRPC in server components?
the.boschTthe.bosch / ❓-help
3y ago
Can I use WebSocket with tRPC for the card game
BALAJI-2615BBALAJI-2615 / ❓-help
2y ago