Skip to main content
Version: Next

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

ParameterTypeDescription
_routeRefRouteRef<Params> | SubRouteRef<Params>Ref of the current route.

Returns:

Params