Skip to main content

useParamsRR

Datalayer Core


Datalayer Core / useParamsRR

Variable: useParamsRR()

const useParamsRR: <ParamsOrKey>() => Readonly<[ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>> = ReactRouterDom.useParams

Defined in: src/navigation/adapters/react-router.tsx:12

Returns an object of key/value pairs of the dynamic params from the current URL that were matched by the route path.

Type Parameters

ParamsOrKey

ParamsOrKey extends string | Record<string, undefined | string> = string

Returns

Readonly<[ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>>

See

https://reactrouter.com/v6/hooks/use-params