SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
import { useParams } from 'react-router-dom';
import type { AppParamsResult } from './types';
/**
* Types every param `string | undefined`, as v6 does. v5 types them as required
* strings.
*/
export function useAppParams<
ParamsOrKey extends string | Record<string, string | undefined> = string,
>(): AppParamsResult<ParamsOrKey> {
return useParams() as AppParamsResult<ParamsOrKey>;
}