We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb487bd commit 4d28534Copy full SHA for 4d28534
packages/jaeger-ui/src/components/TracePage/useNormalizeTraceId.ts
@@ -1,7 +1,7 @@
1
// Copyright (c) 2025 The Jaeger Authors.
2
// SPDX-License-Identifier: Apache-2.0
3
4
-import { useEffect } from 'react';
+import * as React from 'react';
5
import { useNavigate, useLocation } from 'react-router-dom-v5-compat';
6
7
import { getUrl } from './url';
@@ -12,7 +12,7 @@ export function useNormalizeTraceId(traceID: string): string {
12
const navigate = useNavigate();
13
const location = useLocation();
14
15
- useEffect(() => {
+ React.useEffect(() => {
16
if (traceID && traceID !== normalizedTraceID) {
17
const url = getUrl(normalizedTraceID);
18
navigate(`${url}${location.search}`, { replace: true, state: location.state });
0 commit comments