We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c880bd7 commit 7b9718aCopy full SHA for 7b9718a
src/hooks/useFilterParam.ts
@@ -23,9 +23,8 @@ export function useFilterParam(
23
const setValue = (newValue: string) => {
24
if (!allowedValues.includes(newValue)) return; // ignore invalid values
25
if (newValue !== value) {
26
- const nav: any = navigate;
27
- nav({
28
- search: (prev: any) => ({
+ navigate({
+ search: (prev) => ({
29
...prev,
30
[paramName]: newValue,
31
}),
0 commit comments