Aller au contenu principal
Version : 11.x

Type Alias: WithTRPCSSROptions<TRouter>

WithTRPCSSROptions<TRouter>: WithTRPCOptions<TRouter> & object

Defined in: withTRPC.tsx:54

Type declaration​

responseMeta()?​

optional responseMeta: (opts) => ResponseMeta

Parameters​

ParameterType
opts{ clientErrors: TRPCClientError<TRouter>[]; ctx: NextPageContext; }
opts.clientErrorsTRPCClientError<TRouter>[]
opts.ctxNextPageContext

Returns​

ResponseMeta

ssr​

ssr: true | (opts) => boolean | Promise<boolean>

If you enable this, you also need to add a ssrPrepass-prop

See​

https://trpc.io/docs/client/nextjs/ssr

ssrPrepass​

ssrPrepass: TRPCPrepassHelper

use import { ssrPrepass } from '@trpc/next/ssrPrepass'

See​

https://trpc.io/docs/client/nextjs/ssr

Type Parameters​

Type Parameter
TRouter extends AnyRouter