Skip to content
tRPC

Partners

Function: ~~createTRPCQueryUtils()~~

On this page

createTRPCQueryUtils<TRouter>(opts): CreateQueryUtils<TRouter>

Defined in: packages/react-query/src/createTRPCQueryUtils.tsx:15

Creates the useUtils helpers outside of React, from a tRPC client and a QueryClient.

Type Parameters

Type Parameter
TRouter extends AnyRouter

Parameters

ParameterType
optsCreateQueryUtilsOptions<TRouter>

Returns

CreateQueryUtils<TRouter>

Deprecated

@trpc/react-query only gets bug fixes and will be removed in the next major version. Use @trpc/tanstack-react-query instead.

See