Skip to content

Commit

Permalink
Format useDebounceFetcher function parameters for improved readability
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiodxa committed Jan 20, 2025
1 parent 0963192 commit eed0c80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/react/use-debounce-fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ type DebouncedFetcher<Data = unknown> = Omit<
"submit"
> & { submit: DebounceSubmitFunction };

export function useDebounceFetcher<Data>(opts?: Parameters<typeof useFetcher>[0],) {
export function useDebounceFetcher<Data>(
opts?: Parameters<typeof useFetcher>[0],
) {
let timeoutRef = useRef<Timer>(null);

useEffect(() => {
Expand Down

0 comments on commit eed0c80

Please sign in to comment.