lit-ui-router / 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 |
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
callback | readonly | ContextCallback<ContextType<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 |