# Interface: TRPCContextProps<TRouter, TSSRContext>

> 

Defined in: [packages/react-query/src/internals/context.tsx:126](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L126)

Props for the tRPC React context: the base props plus a `QueryClient`.

## Extends

- [`TRPCContextPropsBase`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md)\<`TRouter`, `TSSRContext`\>

## Type Parameters

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

## Properties

### ~~abortOnUnmount?~~

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

Defined in: [packages/react-query/src/internals/context.tsx:110](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L110)

#### Deprecated

pass abortOnUnmount to `createTRPCReact` instead
Abort loading query calls when unmounting a component - usually when navigating to a new page

#### Default

```ts
false
```

#### Inherited from

[`TRPCContextPropsBase`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md).[`abortOnUnmount`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md#abortonunmount)

***

### client

> **client**: [`TRPCUntypedClient`](https://trpc.io/docs/typedoc/react-query/index/classes/TRPCUntypedClient.md)\<`TRouter`\>

Defined in: [packages/react-query/src/internals/context.tsx:90](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L90)

The `TRPCClient`

#### Inherited from

[`TRPCContextPropsBase`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md).[`client`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md#client)

***

### queryClient

> **queryClient**: `QueryClient`

Defined in: [packages/react-query/src/internals/context.tsx:133](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L133)

The react-query `QueryClient`

***

### ssrContext?

> `optional` **ssrContext**: `null` \| `TSSRContext`

Defined in: [packages/react-query/src/internals/context.tsx:95](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L95)

The SSR context when server-side rendering

#### Default

```ts
null
```

#### Inherited from

[`TRPCContextPropsBase`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md).[`ssrContext`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md#ssrcontext)

***

### ssrState?

> `optional` **ssrState**: `SSRState`

Defined in: [packages/react-query/src/internals/context.tsx:104](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/packages/react-query/src/internals/context.tsx#L104)

State of SSR hydration.
- `false` if not using SSR.
- `prepass` when doing a prepass to fetch queries' data
- `mounting` before TRPCProvider has been rendered on the client
- `mounted` when the TRPCProvider has been rendered on the client

#### Default

```ts
false
```

#### Inherited from

[`TRPCContextPropsBase`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md).[`ssrState`](https://trpc.io/docs/typedoc/react-query/shared/interfaces/TRPCContextPropsBase.md#ssrstate)
