Hex Core JS
Preparing search index...
Router
useLocation
Function useLocation
useLocation
<
T
>
()
:
{
hash
:
string
;
isInitial
:
boolean
;
isMount
:
boolean
;
key
?:
string
;
pathname
:
string
;
search
:
string
;
state
:
T
|
undefined
;
}
Provides the current history location object.
Type Parameters
T
Returns
{
hash
:
string
;
isInitial
:
boolean
;
isMount
:
boolean
;
key
?:
string
;
pathname
:
string
;
search
:
string
;
state
:
T
|
undefined
;
}
Typeparam
T The type of the location's
state
.
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Hex Core JS
Loading...
Provides the current history location object.