Skip to content

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

PropertyModifierTypeDescriptionDefined in
callbackreadonlyContextCallback<ContextType<T>>Invoked with the value when a provider can satisfy the request.packages/lit-ui-router/src/context.ts:59
contextreadonlyTThe requested context key, matched by identity (===).packages/lit-ui-router/src/context.ts:57
subscribe?readonlybooleanWhether the requester wants to be called again as the value changes.packages/lit-ui-router/src/context.ts:61