Skip to main content
Version: 10.x

Function: createReactQueryHooks()

createReactQueryHooks<TRouter, TSSRContext, TFlags>(opts?): CreateReactQueryHooks< TRouter, TSSRContext > & {proxy: CreateTRPCReact< TRouter, TSSRContext, TFlags >;}

Deprecated

use createTRPCReact instead

Type parameters

ParameterDefault
TRouter extends Router< AnyRouterDef< AnyRootConfig, any >, TRouter >-
TSSRContextunknown
TFlagsnull

Parameters

ParameterType
opts?CreateTRPCReactOptions< TRouter >

Returns

CreateReactQueryHooks< TRouter, TSSRContext > & {proxy: CreateTRPCReact< TRouter, TSSRContext, TFlags >;}

Source

packages/react-query/src/interop.ts:13


Generated using TypeDoc and typedoc-plugin-markdown