Type Alias: WithTRPCSSROptions<TRouter>
WithTRPCSSROptions<
TRouter>:WithTRPCOptions<TRouter> &object
Defined in: withTRPC.tsx:54
Type declaration​
responseMeta()?​
optionalresponseMeta: (opts) =>ResponseMeta
Parameters​
| Parameter | Type |
|---|---|
opts | { clientErrors: TRPCClientError<TRouter>[]; ctx: NextPageContext; } |
opts.clientErrors | TRPCClientError<TRouter>[] |
opts.ctx | NextPageContext |
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 |