Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(browserHistory): Remove from transactionEvents/content #82620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ import {space} from 'sentry/styles/space';
import type {Organization} from 'sentry/types/organization';
import type {Project} from 'sentry/types/project';
import {trackAnalytics} from 'sentry/utils/analytics';
import {browserHistory} from 'sentry/utils/browserHistory';
import type EventView from 'sentry/utils/discover/eventView';
import {SavedQueryDatasets} from 'sentry/utils/discover/types';
import type {WebVital} from 'sentry/utils/fields';
import {decodeScalar} from 'sentry/utils/queryString';
import projectSupportsReplay from 'sentry/utils/replays/projectSupportsReplay';
import {useNavigate} from 'sentry/utils/useNavigate';
import {useRoutes} from 'sentry/utils/useRoutes';
import {hasDatasetSelector} from 'sentry/views/dashboards/utils';
import {useDomainViewFilters} from 'sentry/views/insights/pages/useFilters';
Expand Down Expand Up @@ -185,6 +185,8 @@ function Search(props: Props) {
percentileValues,
} = props;

const navigate = useNavigate();

const handleSearch = (query: string) => {
const queryParams = normalizeDateTimeParams({
...(location.query || {}),
Expand All @@ -194,7 +196,7 @@ function Search(props: Props) {
// do not propagate pagination when making a new search
const searchQueryParams = omit(queryParams, 'cursor');

browserHistory.push({
navigate({
pathname: location.pathname,
query: searchQueryParams,
});
Expand Down
Loading