RouterState

sealed external interface RouterState(source)

State maintained internally by the router. During a navigation, all states reflect the the "old" location unless otherwise noted.

Properties

Link copied to clipboard
abstract var actionData: RouteData?

Data from the action for the current matches

Link copied to clipboard

Map of current blockers

Link copied to clipboard
abstract var errors: RouteData?

Errors caught from loaders for the current matches

Link copied to clipboard
abstract var fetchers: ReadonlyMap<String, Fetcher<*>>

Map of current fetchers

Link copied to clipboard
abstract var historyAction: Action

The action of the most recent navigation

Link copied to clipboard
abstract var initialized: Boolean

Tracks whether we've completed our initial data load

Link copied to clipboard
abstract var loaderData: RouteData

Data from the loaders for the current matches

Link copied to clipboard
abstract var location: Location<*>

The current location reflected by the router

Link copied to clipboard

The current set of route matches

Link copied to clipboard
abstract var navigation: Navigation

Tracks the state of the current navigation

Link copied to clipboard

Indicate whether this navigation should skip resetting the scroll position if we are unable to restore the scroll position

Link copied to clipboard
abstract var restoreScrollPosition: Any?

Current scroll position we should start at for a new view

Link copied to clipboard

Tracks any in-progress revalidations