Browse/Search: Make browser back work properly when visiting Browse or search (#52271)

This commit is contained in:
Torkel Ödegaard 2022-07-14 21:07:12 +02:00 committed by GitHub
parent 0573df931b
commit 52a7b0e75f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ import { defaultQuery, defaultQueryParams, queryReducer } from '../reducers/sear
import { DashboardQuery, SearchLayout } from '../types';
import { hasFilters, parseRouteParams } from '../utils';
const updateLocation = debounce((query) => locationService.partial(query), 300);
const updateLocation = debounce((query) => locationService.partial(query, true), 300);
export const useSearchQuery = (defaults: Partial<DashboardQuery>) => {
const queryParams = parseRouteParams(locationService.getSearchObject());