Skip to content

Commit

Permalink
chore: Remove dead code
Browse files Browse the repository at this point in the history
No need to pass pages-router specific code here,
as this branch now only runs in the app router context.
  • Loading branch information
franky47 committed Jan 31, 2024
1 parent 9e54413 commit 1ff3c67
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/nuqs/src/update-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@ function flushUpdateQueue(router: Router): [URLSearchParams, null | unknown] {
// Call the Next.js router to perform a network request
// and re-render server components.
router.replace(url, {
scroll: false,
// @ts-expect-error - pages router fix, but not exposed in navigation types
shallow: false
scroll: false
})
})
}
Expand Down

0 comments on commit 1ff3c67

Please sign in to comment.