Themes

Router/Types/LocationSegments
LocationSegments
Name
Description
Type
hash

The current hash.

string
key

The key of the location.

string
pathname

The path from root.

string
query

The contents of the search params.

Record<string, any>
scrollPosition

A tuple of [x, y] scroll position.

[number, number]
search

The current search string.

string
state

Any state that has been attached to the current location.

any