parent
be7877f526
commit
9c3cf7b69a
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ function useAppsQueryState() {
|
||||||
const syncSearchParams = useCallback((params: URLSearchParams) => {
|
const syncSearchParams = useCallback((params: URLSearchParams) => {
|
||||||
const search = params.toString()
|
const search = params.toString()
|
||||||
const query = search ? `?${search}` : ''
|
const query = search ? `?${search}` : ''
|
||||||
router.push(`${pathname}${query}`)
|
router.push(`${pathname}${query}`, { scroll: false })
|
||||||
}, [router, pathname])
|
}, [router, pathname])
|
||||||
|
|
||||||
// Update the URL search string whenever the query changes.
|
// Update the URL search string whenever the query changes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue