Skip to content

Commit

Permalink
fix: use replace for discover form navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Nov 29, 2024
1 parent 5c328ba commit 63602f2
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ export function Component() {
<Tabs
value={search.get("type") || "search"}
onValueChange={(val) => {
setSearch((search) => {
search.set("type", val)
return new URLSearchParams(search)
})
setSearch(
(search) => {
search.set("type", val)
return new URLSearchParams(search)
},
{ replace: true },
)
}}
className="max-w-full"
>
Expand Down

0 comments on commit 63602f2

Please sign in to comment.