Backstage
    Preparing search index...
    • React hook for retrieving dynamic params from the current URL.

      Type Parameters

      Parameters

      Returns TParams

      With AppHistory, reads params from the matched extension ancestry, including ordinary nested route-bearing extensions. No router adapter is required. Without AppHistory, reads the old frontend's React Router params.

      The route ref says which params the caller wants: the returned object has exactly the keys the ref declares, so its shape matches the ref's TParams type rather than carrying whatever else the surrounding patterns happened to bind. A declared param the current location does not bind is present with the value undefined — the way React Router's own useParams reports an optional segment the location left out, and the value the previous useParams-backed implementation of this hook returned for one. The splat * is never among the keys, because no route ref declares it.