ViewControllerOptions interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface ViewControllerOptions<TClient extends ViewClient>

No documentation.

Properties

release

readonly release?: (client: TClient) => void;

Releases a client this controller connected. Defaults to client.dispose().

keepAlive

readonly keepAlive?: number;

Milliseconds a client this controller connected stays connected after the controller lets go of it (release, dispose or a changed source), for the next controller that follows the same connector: a binding that mounts again, such as after StrictMode's simulated unmount, Fast Refresh or HMR, <Activity> or A→B→A navigation, takes it over with its state instead of opening the route again. A whole number from 0 to 2147483647; 0 releases at once. Defaults to 2000. Connectors are identified by their connect function, as by setSource.