Skip to content

Commit

Permalink
Again
Browse files Browse the repository at this point in the history
  • Loading branch information
geoperez committed Dec 9, 2024
1 parent 88d4b5c commit 235af71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { startTransition, useEffect, useMemo, useRef, useState } from 'react';
import { debounce } from 'uno-js';

export const useDebounce = (callback: () => unknown, waitMilliseconds?: number) => {
const ref = useRef<() => unknown>(null);
const ref = useRef<() => unknown>();

useEffect(() => {
ref.current = callback;
Expand Down

0 comments on commit 235af71

Please sign in to comment.