Skip to content

Commit

Permalink
useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ikhoon committed Aug 23, 2024
1 parent 2a4b3cc commit 53ea146
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const DebouncedInput = ({
}, debounce);

return () => clearTimeout(timeout);
}, [debounce, onChange, value]);
}, [debounce, onChange, value, setOldValue, oldValue]);

return (
<Input
Expand Down

0 comments on commit 53ea146

Please sign in to comment.