# Type Alias: ~~WithTRPCConfig<TRouter>~~

> 

> **WithTRPCConfig**\<`TRouter`\>: `CreateTRPCClientOptions`\<`TRouter`\> & `CreateTRPCReactQueryClientConfig` & `object`

Defined in: [withTRPC.tsx:44](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/next/src/withTRPC.tsx#L44)

What the `config` callback returns: tRPC client options, `QueryClient` options and `abortOnUnmount`.

## Type declaration

### ~~abortOnUnmount?~~

> `optional` **abortOnUnmount**: `boolean`

Abort pending queries when their component unmounts.

#### Default

```ts
false
```

## Type Parameters

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

## Deprecated

part of `createTRPCNext`, which is built on `@trpc/react-query`.

## See

https://trpc.io/docs/client/nextjs/pages-router/setup#moving-from-createtrpcnext
