Skip to main content
Version: 11.x

Function: createTRPCReact()

createTRPCReact<TRouter, TSSRContext>(opts?): ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecorateRouterRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>>

Defined in: packages/react-query/src/createTRPCReact.tsx:512

Type Parameters

Type ParameterDefault type
TRouter extends AnyRouter-
TSSRContextunknown

Parameters

ParameterType
opts?CreateTRPCReactOptions<TRouter>

Returns

ProtectedIntersection<CreateTRPCReactBase<TRouter, TSSRContext>, DecorateRouterRecord<TRouter["_def"]["_config"]["$types"], TRouter["_def"]["record"]>>