NavigationTransition

The NavigationTransition interface of the Navigation API represents an ongoing navigation — a navigation that hasn't yet reached the navigatesuccess or navigateerror stage.

MDN Reference

Properties

Link copied to clipboard
open external val committed: Promise<Void>

The committed read-only property of the NavigationTransition interface returns a Promise that fulfills when Navigation.currentEntry is updated and the new URL is displayed in the browser, marking the navigation as committed. This happens after all precommit handlers for the navigation are fulfilled.

Link copied to clipboard
open external val finished: Promise<Void>

The finished read-only property of the NavigationTransition interface returns a Promise that fulfills at the same time the navigatesuccess event fires, or rejects at the same time the navigateerror event fires.

Link copied to clipboard
open external val from: NavigationHistoryEntry

The from read-only property of the NavigationTransition interface returns the NavigationHistoryEntry that the transition is coming from.

Link copied to clipboard
open external val navigationType: NavigationType

The navigationType read-only property of the NavigationTransition interface returns the type of the ongoing navigation.