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