tRPC v11 restructured its React integration around TanStack Query v5 and added first-class support for Next.js App Router via createCallerFactory and FormData procedures. Test your command of the updated API vocabulary.
0 / 5 completed
1 / 5
What major change did tRPC v11 make to how client-side data fetching is managed?
tRPC v11 restructured its React integration around TanStack Query v5. The @trpc/react-query package is now the canonical adapter, giving access to all TanStack Query features (infinite queries, mutations, prefetching) with full tRPC type safety, while the core @trpc/client remains framework-agnostic.
2 / 5
What does createTRPCClient create in tRPC v11?
createTRPCClient produces a standalone tRPC client usable in any JavaScript environment — Node.js scripts, server components, or vanilla browser code. It accepts a link chain (e.g., httpBatchLink) and returns a typed proxy whose methods map to your router's procedures.
3 / 5
What feature did tRPC v11 add to support server-component data fetching in Next.js App Router?
createCallerFactory in tRPC v11 generates a typed server-side caller that invokes procedures directly without going through HTTP. In Next.js App Router, you create a caller in a Server Component or a React Server Component data-fetching function to fetch data with zero network overhead and full tRPC type safety.
4 / 5
What are FormData procedures in tRPC v11?
FormData procedures allow a tRPC mutation to receive a FormData object as its input. This makes it possible to wire tRPC directly to an HTML <form action> or a Next.js Server Action, enabling progressive enhancement with type-safe server-side handling without a manual JSON serialisation step.
5 / 5
What is the role of a link in a tRPC client configuration?
Links in tRPC are the client-side equivalent of server middleware. They form a chain (e.g., loggerLink -> httpBatchLink) where each link can observe, transform, or short-circuit a request. The terminating link (typically httpBatchLink or wsLink) performs the actual network call.