Skip to content

Commit 6fa2bf5

Browse files
committed
ref(browserHistory): Remove from transactionEvents
1 parent be0f4da commit 6fa2bf5

File tree

1 file changed

+4
-3
lines changed
  • static/app/views/performance/transactionSummary/transactionEvents

1 file changed

+4
-3
lines changed

Diff for: static/app/views/performance/transactionSummary/transactionEvents/index.tsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {t} from 'sentry/locale';
66
import type {Organization} from 'sentry/types/organization';
77
import type {Project} from 'sentry/types/project';
88
import {trackAnalytics} from 'sentry/utils/analytics';
9-
import {browserHistory} from 'sentry/utils/browserHistory';
109
import DiscoverQuery from 'sentry/utils/discover/discoverQuery';
1110
import EventView from 'sentry/utils/discover/eventView';
1211
import {
@@ -18,6 +17,7 @@ import {WebVital} from 'sentry/utils/fields';
1817
import {removeHistogramQueryStrings} from 'sentry/utils/performance/histogram';
1918
import {decodeScalar} from 'sentry/utils/queryString';
2019
import {MutableSearch} from 'sentry/utils/tokenizeSearch';
20+
import {useNavigate} from 'sentry/utils/useNavigate';
2121
import withOrganization from 'sentry/utils/withOrganization';
2222
import withProjects from 'sentry/utils/withProjects';
2323

@@ -75,6 +75,7 @@ function EventsContentWrapper(props: ChildProps) {
7575
projectId,
7676
projects,
7777
} = props;
78+
const navigate = useNavigate();
7879
const eventsDisplayFilterName = decodeEventsDisplayFilterFromLocation(location);
7980
const spanOperationBreakdownFilter = decodeFilterFromLocation(location);
8081
const webVital = getWebVital(location);
@@ -126,7 +127,7 @@ function EventsContentWrapper(props: ChildProps) {
126127
if (newFilter === SpanOperationBreakdownFilter.NONE) {
127128
delete nextQuery.breakdown;
128129
}
129-
browserHistory.push({
130+
navigate({
130131
pathname: location.pathname,
131132
query: nextQuery,
132133
});
@@ -150,7 +151,7 @@ function EventsContentWrapper(props: ChildProps) {
150151
delete nextQuery.showTransaction;
151152
}
152153

153-
browserHistory.push({
154+
navigate({
154155
pathname: location.pathname,
155156
query: nextQuery,
156157
});

0 commit comments

Comments
 (0)