tRPC Parity Feature
SSR Hydrated (Zero Loading Flash)
tRPC-Style Catch-All Router + SSR Hydration
Demonstrates full tRPC-style path routing using a Next.js App Router catch-all route app/api/rpc/[[...rpc]]/route.ts prefetched in a Server Component with queryClient.prefetchQuery and hydrated to client components with zero loading flicker via <HydrationBoundary>.
Endpoint Health
200 OK — Healthy
Last Routed Call
SSR Hydrated (Initial Render)
Request Batching & Network Deduplication
Feature #2Queries dispatched in the same tick (10ms) are pooled into a single POST /api/rpc?batch=1 payload. Duplicate in-flight requests are automatically collapsed on the client link.
Dispatched Calls
0
HTTP Requests
0
Calls Deduplicated
0
Latency
—
Router Todos Demo
Fetched via rpc.todos.list.useQuery() (hydrated from Server Component)
Test tRPC-style catch-all routing
toggleVerify client proxy hook integration
toggleCreate Next.js route handler at /api/rpc/[...rpc]
toggleHow this works (Next.js App Router + SSR Hydration)
1. Server Component Prefetch (app/playground/rpc/page.tsx)
// Server Component
const queryClient = new QueryClient();
await queryClient.prefetchQuery(
["todos", "list"],
() => appRouter.todos.list()
);
return (
<HydrationBoundary state={queryClient.dehydrate()}>
<RPCRouterPlaygroundClient />
</HydrationBoundary>
);2. Client Component (Zero-Flash useQuery)
// Client Component:
// Instant cache hit on frame 0, zero loading spinner!
const todos = rpc.todos.list.useQuery({
unwrap: true,
});
const { mutate } = rpc.todos.add.useMutation();