@@ -6,7 +6,6 @@ import {t} from 'sentry/locale';
6
6
import type { Organization } from 'sentry/types/organization' ;
7
7
import type { Project } from 'sentry/types/project' ;
8
8
import { trackAnalytics } from 'sentry/utils/analytics' ;
9
- import { browserHistory } from 'sentry/utils/browserHistory' ;
10
9
import DiscoverQuery from 'sentry/utils/discover/discoverQuery' ;
11
10
import EventView from 'sentry/utils/discover/eventView' ;
12
11
import {
@@ -18,6 +17,7 @@ import {WebVital} from 'sentry/utils/fields';
18
17
import { removeHistogramQueryStrings } from 'sentry/utils/performance/histogram' ;
19
18
import { decodeScalar } from 'sentry/utils/queryString' ;
20
19
import { MutableSearch } from 'sentry/utils/tokenizeSearch' ;
20
+ import { useNavigate } from 'sentry/utils/useNavigate' ;
21
21
import withOrganization from 'sentry/utils/withOrganization' ;
22
22
import withProjects from 'sentry/utils/withProjects' ;
23
23
@@ -75,6 +75,7 @@ function EventsContentWrapper(props: ChildProps) {
75
75
projectId,
76
76
projects,
77
77
} = props ;
78
+ const navigate = useNavigate ( ) ;
78
79
const eventsDisplayFilterName = decodeEventsDisplayFilterFromLocation ( location ) ;
79
80
const spanOperationBreakdownFilter = decodeFilterFromLocation ( location ) ;
80
81
const webVital = getWebVital ( location ) ;
@@ -126,7 +127,7 @@ function EventsContentWrapper(props: ChildProps) {
126
127
if ( newFilter === SpanOperationBreakdownFilter . NONE ) {
127
128
delete nextQuery . breakdown ;
128
129
}
129
- browserHistory . push ( {
130
+ navigate ( {
130
131
pathname : location . pathname ,
131
132
query : nextQuery ,
132
133
} ) ;
@@ -150,7 +151,7 @@ function EventsContentWrapper(props: ChildProps) {
150
151
delete nextQuery . showTransaction ;
151
152
}
152
153
153
- browserHistory . push ( {
154
+ navigate ( {
154
155
pathname : location . pathname ,
155
156
query : nextQuery ,
156
157
} ) ;
0 commit comments