diff --git a/src/hooks/use-debounce.ts b/src/hooks/use-debounce.ts index 145fab56..a92379ec 100644 --- a/src/hooks/use-debounce.ts +++ b/src/hooks/use-debounce.ts @@ -4,12 +4,12 @@ export function useDebounce(value: T, delay: number): T { const [debouncedValue, setDebouncedValue] = useState(value); useEffect(() => { - const handler = setTimeout(() => { + const timeoutID = setTimeout(() => { setDebouncedValue(value); }, delay); return () => { - clearTimeout(handler); + clearTimeout(timeoutID); }; }, [value, delay]);