Skip to content
tRPC

Partners

Type Alias: ~~TRPCPrepassProps<TRouter, TSSRContext>~~

On this page

TRPCPrepassProps<TRouter, TSSRContext>: object

Defined in: withTRPC.tsx:130

The props ssrPrepass passes to the wrapped app during the prepass.

Type Parameters

Type ParameterDefault type
TRouter extends AnyRouter-
TSSRContext extends NextPageContextNextPageContext

Type declaration

config

config: WithTRPCConfig<TRouter>

The client config from the config callback.

queryClient

queryClient: QueryClient

The QueryClient that collects the prefetched queries.

ssrContext

ssrContext: TSSRContext

The Next.js page context.

ssrState

ssrState: "prepass"

trpcClient

trpcClient: TRPCUntypedClient<TRouter> | TRPCClient<TRouter>

The tRPC client used during the prepass.

Deprecated

part of ssr: true, which is built on @trpc/react-query.

See

https://trpc.io/docs/client/nextjs/pages-router/ssr