lit-ui-router-effect / RefControllerOptions
Interface: RefControllerOptions<T>
Defined in: ref-controller.ts:27
Options for RefController.
Extended by
Type Parameters
| Type Parameter |
|---|
T |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
equals? | (a, b) => boolean | Comparer deciding whether the selected value changed. Defaults to Object.is; pass Equal.equals for Data structs, or a structural comparer for plain objects. | ref-controller.ts:49 |
initialValue? | T | Value exposed on .value before the first read of a ref that is only resolved on hostConnected (see RefSource) — that is, before the host connects, and on any host that renders while disconnected (SSR). Refs given directly are read at construction instead, so they never need it. | ref-controller.ts:42 |
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. | ref-controller.ts:33 |
runtime? | RefRuntime | The runtime the subscription fiber is forked on, and refs are read with. Defaults to Effect's default runtime; pass the app's ManagedRuntime to keep everything on one. | ref-controller.ts:56 |