lit-ui-router-mobx / RouterReactionControllerOptions
Interface: RouterReactionControllerOptions<T>
Defined in: router-reaction-controller.ts:10
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. compareStructural on mobx 7, comparer.structural on mobx 6). Defaults to MobX's identity comparer. | ReactionControllerOptions.equals | reaction-controller.ts:25 |
initialValue? | T | Value 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. | ReactionControllerOptions.initialValue | reaction-controller.ts:18 |
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:19 |