File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ const searchQuery = shallowRef(normalizeSearchParam(route.query.q))
2929// Pages that have their own local filter using ?q
3030const pagesWithLocalFilter = new Set ([' ~username' , ' org' ])
3131
32- function updateUrlQueryImpl (value : string ) {
32+ function updateUrlQuery (value : string ) {
3333 // Don't navigate away from pages that use ?q for local filtering
3434 if (pagesWithLocalFilter .has (route .name )) {
3535 return
@@ -46,16 +46,6 @@ function updateUrlQueryImpl(value: string) {
4646 })
4747}
4848
49- const updateUrlQueryNpm = debounce (updateUrlQueryImpl , 250 )
50- const updateUrlQueryAlgolia = debounce (updateUrlQueryImpl , 80 )
51-
52- const updateUrlQuery = Object .assign (
53- (value : string ) => (isAlgolia .value ? updateUrlQueryAlgolia : updateUrlQueryNpm )(value ),
54- {
55- flush : () => (isAlgolia .value ? updateUrlQueryAlgolia : updateUrlQueryNpm ).flush (),
56- },
57- )
58-
5949watch (searchQuery , value => {
6050 if (route .name === ' search' ) {
6151 updateUrlQuery (value )
You can’t perform that action at this time.
0 commit comments