lit-ui-router / RequestContextOptions
Interface: RequestContextOptions<T>
Defined in: packages/lit-ui-router/src/context.ts:219
Options for requestContext.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends UnknownContext | the context key's type, branded with the value it references |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
callback? | ContextCallback<ContextType<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:230 |
subscribe? | boolean | Ask the provider to keep calling back as the value changes; pair it with callback. A provider that holds one value answers once and hands back a no-op unsubscribe. | packages/lit-ui-router/src/context.ts:225 |