Skip to content

lit-ui-router-mobx / RouterReactionControllerOptions

Interface: RouterReactionControllerOptions<T>

Defined in: router-reaction-controller.ts:9

Extends

Type Parameters

Type Parameter
T

Properties

PropertyTypeDescriptionInherited fromDefined in
equals?IEqualsComparer<T>Comparer deciding whether the selected value changed (e.g. comparer.structural). Defaults to MobX's identity comparer.ReactionControllerOptions.equalsreaction-controller.ts:16
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.ReactionControllerOptions.onChangereaction-controller.ts:10
router?UIRouterExplicit router instance. When omitted, the controller discovers the router from the nearest enclosing <ui-router> element on hostConnected (via UIRouterLitElement.seekRouter).-router-reaction-controller.ts:18