use_route_location
Returns the current location pathname.
Must be called inside a component rendered by a Router.
Returns an empty string if called outside a Router tree.
Returns:
- str - The current URL pathname (e.g.
"/products/42").
Returns the current location pathname.
Must be called inside a component rendered by a Router.
Returns an empty string if called outside a Router tree.
Returns:
"/products/42").