interface / @typed/navigation

NavigationReloadOptions

Configures a reload while optionally replacing the current entry state.

Package version
1.0.0-beta.7
Category
Command options
Since
1.0.0

Import

import { NavigationReloadOptions } from "@typed/navigation";

Signatures

export interface NavigationReloadOptions {
    readonly state?: unknown;
    readonly info?: unknown;
}

Why

Reload has no history-placement choice but still needs the same state and handler metadata channels as other transitions.

Ownership and lifetime

This immutable options object acquires no resources and is retained only for the reload Effect.

Property: info

Transient metadata delivered to navigation handlers.

Property: info: Why

Coordination data can accompany a transition without being serialized as entry state.

Property: info: Ownership and lifetime

The transition retains this metadata only until post-commit handlers finish; it is not stored on the Destination history entry.

Property: state

Application state stored with a committed destination.

Property: state: Why

Persistent entry data stays distinct from transient handler information.

Property: state: Ownership and lifetime

The caller owns the supplied state value. A successful commit retains it on the resulting Destination; a cancelled or failed transition does not.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source