# Interface Location<State>

An entry in a history stack. A location contains information about the URL path, as well as possibly some arbitrary state and a key.

interface Location<State> {
hash: string;
key: string;
pathname: string;
search: string;
state: State;
}

#### Type Parameters

- State = any

#### Hierarchy (view full)

- Path
  - Location

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:46

#####
Index

### Properties

hash
key
pathname
search
state

## Properties

### hash

hash: string

A URL fragment identifier, beginning with a #.

Inherited from Path.hash

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:40

### key

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.

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:57

### pathname

pathname: string

A URL pathname, beginning with a /.

Inherited from Path.pathname

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:32

### search

search: string

A URL search string, beginning with a ?.

Inherited from Path.search

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:36

### state

state: State

A value of arbitrary data associated with this location.

- Defined in common/temp/node_modules/.pnpm/@remix-run+router@1.16.1/node_modules/@remix-run/router/dist/history.d.ts:50