pub fn use_location<'hook>() -> impl 'hook + Hook<Output = Option<Location>>Expand description
A hook to access the current Location information.
This hook provides components with access to the current location, including details such as the path and query parameters.
It retrieves the location from the current context and returns it as an Option.
ยงNote
When used in function components and hooks, this hook is equivalent to:
pub fn use_location() -> Option<Location> {
/* implementation omitted */
}