lit-ui-router-mobx / RouterReactionControllerOptions
Interface: RouterReactionControllerOptions<T>
Defined in: router-reaction-controller.ts:9
Extends
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
equals? | IEqualsComparer<T> | Comparer deciding whether the selected value changed (e.g. comparer.structural). Defaults to MobX's identity comparer. | ReactionControllerOptions.equals | reaction-controller.ts:16 |
onChange? | (value) => void | Invoked (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.onChange | reaction-controller.ts:10 |
router? | UIRouter | Explicit 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 |