Hook that returns the current location object (path, search, hash, and navigation state).
The current location data for the active router context.
Hook that returns the current location object (path, search, hash, and navigation state).