Skip to content

lit-ui-router / ContextCallback

Type Alias: ContextCallback<ValueType>

ts
type ContextCallback<ValueType> = (value, unsubscribe?) => void;

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

The callback a requester hands a provider. A provider that was asked to subscribe may call it again as the value changes, passing unsubscribe.

Type Parameters

Type Parameter
ValueType

Parameters

ParameterType
valueValueType
unsubscribe?() => void

Returns

void