ThomasT
tRPC11mo ago
6 replies
Thomas

tRPC useQuery waits for all queries—How to render ASAP?

I have a dashboard with multiple components, each making its own useQuery call. The problem: It waits for all queries to load before rendering anything, instead of displaying data as soon as it's ready.

🔹 Setup:

- trpc.createClient with httpBatchLink
- Each component has its own independent useQuery()
- No Promise.all(), no global Suspense
Solution
Ok I found the solution, I switched to « httpLink » instead of « httpBatchLink » in my trpc client
Was this page helpful?