Do I need `HydrateClient` on every Next.js route?

I'm trying t3 stack for first time, and I noticed that in Home route component, there's a trpc prefetch and a HydrateClient component wrapping all the elements. I assume that is supposed to make streaming pending prefetches to work, right? How can abstract that? For example avoiding repeating HydrateClient every time I have a prefetch. And also even avoiding the prefetch call at all by configuring something at the useQuery level?
3 Replies
Kalil
KalilOP4mo ago
Help?
Neto
Neto4mo ago
#ct3a-meta is a better place to ask
Kalil
KalilOP4mo ago
Ok
Want results from more Discord servers?
Add your server