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

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 |
|  `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 |
