Skip to content

lit-ui-router / RequestContextOptions

Interface: RequestContextOptions<T> ​

Defined in: packages/lit-ui-router/src/context.ts:219

Options for requestContext.

Type Parameters ​

Type ParameterDescription
T extends UnknownContextthe context key's type, branded with the value it references

Properties ​

PropertyTypeDescriptionDefined 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?booleanAsk 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