Skip to content

Commit

Permalink
debounce time + prettier format (#356)
Browse files Browse the repository at this point in the history
Co-authored-by: Aakash  Singh <[email protected]>
  • Loading branch information
aakash2330 and Aakash Singh authored Sep 16, 2024
1 parent 6742a8f commit e4817e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ jobs:
- name: Run lint
run: npm run lint

- name: Run format
run: npm run format

- name: Run format check
run: npm run check

- name: Run format fix if check fails
if: ${{ failure() }}
run: npm run format

- name: Run build
run: npm run build
2 changes: 1 addition & 1 deletion src/hooks/useSetQueryParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function useSetQueryParams() {
}
}
router.push(`${pathName}?${newSearchParams}`, { scroll: false });
}, 300), // 300ms debounce
}, 500), // 300ms debounce
[router, searchParams, pathName]
);

Expand Down

0 comments on commit e4817e9

Please sign in to comment.