useRouteRefParams()
Home > @backstage/frontend-plugin-api > useRouteRefParams
React hook for retrieving dynamic params from the current URL.
Signature:
function useRouteRefParams<Params extends AnyRouteRefParams>(_routeRef: RouteRef<Params> | SubRouteRef<Params>): Params;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
_routeRef |
RouteRef<Params> | SubRouteRef<Params> |
Ref of the current route. |
Params