---
url: https://lit-ui-router.dev/reference/lit-ui-router/types/ContextRequest.md
---
[lit-ui-router](../index.md) / ContextRequest

# Interface: ContextRequest\<T>

Defined in: [packages/lit-ui-router/src/context.ts:55](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L55)

The shape a `context-request` event carries, whichever implementation
constructed it — what a provider reads.

## Type Parameters

| Type Parameter |
| ------ |
|  `T` *extends* [`UnknownContext`](UnknownContext.md) |

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
|  `callback` | `readonly` | [`ContextCallback`](ContextCallback.md)<[`ContextType`](ContextType.md)<`T`>> | Invoked with the value when a provider can satisfy the request. | [packages/lit-ui-router/src/context.ts:59](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L59) |
|  `context` | `readonly` | `T` | The requested context key, matched by identity (`===`). | [packages/lit-ui-router/src/context.ts:57](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L57) |
|  `subscribe?` | `readonly` | `boolean` | Whether the requester wants to be called again as the value changes. | [packages/lit-ui-router/src/context.ts:61](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L61) |
