---
url: https://lit-ui-router.dev/v1/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

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 |
|  `context` | `readonly` | `T` | The requested context key, matched by identity (`===`). | packages/lit-ui-router/src/context.ts:57 |
|  `subscribe?` | `readonly` | `boolean` | Whether the requester wants to be called again as the value changes. | packages/lit-ui-router/src/context.ts:61 |
