# Function: ~~createTRPCQueryUtils()~~

> 

> **createTRPCQueryUtils**\<`TRouter`\>(`opts`): [`CreateQueryUtils`](https://trpc.io/docs/typedoc/react-query/shared/type-aliases/CreateQueryUtils.md)\<`TRouter`\>

Defined in: [packages/react-query/src/createTRPCQueryUtils.tsx:15](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/createTRPCQueryUtils.tsx#L15)

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

## Type Parameters

| Type Parameter |
| ------ |
| `TRouter` *extends* `AnyRouter` |

## Parameters

| Parameter | Type |
| ------ | ------ |
| `opts` | `CreateQueryUtilsOptions`\<`TRouter`\> |

## Returns

[`CreateQueryUtils`](https://trpc.io/docs/typedoc/react-query/shared/type-aliases/CreateQueryUtils.md)\<`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

 - https://trpc.io/docs/client/tanstack-react-query/migrating
 - https://trpc.io/docs/client/react/createTRPCQueryUtils
