createReactQueryHooks()
Deprecated
use createTRPCReact
instead
Signature
ts
createReactQueryHooks<TRouter, TSSRContext, TFlags>(opts?: CreateTRPCReactOptions<TRouter>): CreateReactQueryHooks<TRouter, TSSRContext> & {proxy: CreateTRPCReact<TRouter, TSSRContext, TFlags>;};
ts
createReactQueryHooks<TRouter, TSSRContext, TFlags>(opts?: CreateTRPCReactOptions<TRouter>): CreateReactQueryHooks<TRouter, TSSRContext> & {proxy: CreateTRPCReact<TRouter, TSSRContext, TFlags>;};
Type parameters
TRouter
extendsRouter
<AnyRouterDef
<AnyRootConfig
,any
>,TRouter
>TSSRContext
=unknown
TFlags
=null
Parameters
Name | Type |
---|---|
opts? | CreateTRPCReactOptions <TRouter > |
Returns
CreateReactQueryHooks
<TRouter
, TSSRContext
> & {
proxy
: CreateTRPCReact
<TRouter
, TSSRContext
, TFlags
>;
}
Defined in: packages/react-query/src/interop.ts:13