Reference
RouteLocation
Serializable location data passed to shared page and layout components. Server-only request data such as headers, body, credentials, and abort signals is available through loader and handler contexts instead.
Signature
interface RouteLocationMembers
hash: stringpathname: stringsearch: stringurl: string