Interface RouteLocation<States>

interface RouteLocation<States = unknown> {
    hash: string;
    key: string;
    pathname: string;
    search: string;
    state: States;
}

Type Parameters

  • States = unknown

Hierarchy

  • Location
    • RouteLocation

Properties

hash: string

A URL fragment identifier, beginning with a #.

key: string

A unique string associated with this location. May be used to safely store and retrieve data in some other storage API, like localStorage.

Note: This value is always "default" on the initial location.

pathname: string

A URL pathname, beginning with a /.

search: string

A URL search string, beginning with a ?.

state: States

A value of arbitrary data associated with this location.