Skip to content

lit-ui-router-effect / RefSource

Type Alias: RefSource<Refs> ​

ts
type RefSource<Refs> = Refs | (() => Refs | undefined);

Defined in: lit-ui-router-effect/src/ref-controller.ts:89

Where a RefController finds its refs: the tuple itself, or a thunk resolved on every hostConnected for refs that depend on the host's place in the DOM (the router's, discovered from the enclosing <ui-router>). A thunk returning undefined leaves the controller idle until the host reconnects.

Type Parameters ​

Type Parameter
Refs extends SubscriptionRefs