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

# Interface: RequestContextOptions\<T>

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

Options for [requestContext](../core/requestContext.md).

## Type Parameters

| Type Parameter | Description |
| ------ | ------ |
|  `T` *extends* [`UnknownContext`](UnknownContext.md) | the context key's type, branded with the value it references |

## Properties

| Property | Type | Description | Defined in |
| ------ | ------ | ------ | ------ |
|  `callback?` | [`ContextCallback`](ContextCallback.md)<[`ContextType`](ContextType.md)<`T`>> | Receives every answer, the synchronous first one included, with the provider's `unsubscribe` when one was offered. | [packages/lit-ui-router/src/context.ts:233](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L233) |
|  `subscribe?` | `boolean` | Ask the provider to keep calling back as the value changes; pair it with [callback](#callback). A provider that holds one value answers once and hands back a no-op unsubscribe. | [packages/lit-ui-router/src/context.ts:228](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/lit-ui-router/src/context.ts#L228) |
