Skip to main content

UseRouteParams

useRouteParams

Provides access to the current route params and query params.

Example

import { useRouteParams } from '@vendure/admin-ui/react';
import React from 'react';

export function MyComponent() {
const { params, queryParams } = useRouteParams();
// ...
return <div>{ params.id }</div>;
}
Signature
function useRouteParams(): void