[]previous and next page

NavigationView

Navigation in flight.

Navigation in flight. Reactive when read.

Import#

ts
import type { NavigationView } from "@shadow-js/router";

Signature#

ts
interface NavigationView {
  /** True after `pendingMs` of a navigation, for at least `pendingMinMs`. */
  readonly pending: boolean;
  readonly status: NavigationStatus;
  /** Where the navigation in flight is heading, app-relative. */
  readonly location: LocationView | undefined;
}

Members#

Name Type Description
pending readonly pending: boolean True after pendingMs of a navigation, for at least pendingMinMs.
status readonly status: NavigationStatus
location readonly location: LocationView | undefined Where the navigation in flight is heading, app-relative.