Skip to content

lit-ui-router-signals / SignalControllerOptions

Interface: SignalControllerOptions<T> ​

Defined in: signal-controller.ts:5

Options for SignalController.

Extended by ​

Type Parameters ​

Type Parameter
T

Properties ​

PropertyTypeDescriptionDefined in
equals?(a, b) => booleanComparer deciding whether the selected value changed, passed to the selector's Signal.Computed. Defaults to Object.is.signal-controller.ts:24
initialValue?TValue exposed on .value before the first read — that is, before hostConnected, and on any host that renders while disconnected (SSR). Without it .value is undefined until the host connects.signal-controller.ts:18
onChange?(value) => voidInvoked (before host.requestUpdate()) whenever the selected value changes — and once on every host (re)connect. Use for effects such as resetting component state from route params.signal-controller.ts:11