useLocation
Read the current location from the router state with optional selection. Useful for subscribing to just the pieces of location you care about.
Options:
select: Project thelocationobject to a derived valuestructuralSharing: Enable structural sharing for stable references
Return
The current location (or selected value).