Skip to content

lit-ui-router-mobx / ReactionControllerOptions

Interface: ReactionControllerOptions<T>

Defined in: reaction-controller.ts:4

Extended by

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionDefined in
equals?IEqualsComparer<T>Comparer deciding whether the selected value changed (e.g. compareStructural on mobx 7, comparer.structural on mobx 6). Defaults to MobX's identity comparer.reaction-controller.ts:25
initialValue?TValue exposed on .value before the first reaction run — that is, before hostConnected, and on any host that renders while disconnected (SSR). Without it .value is undefined until the host connects, which is safe to render but not to read a property of.reaction-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.reaction-controller.ts:10