Skip to content

Commit

Permalink
fix(open-amdocs#7): Upgraded to React 17, including fix to Scrollable…
Browse files Browse the repository at this point in the history
… and effect cleanup timing
  • Loading branch information
gaeaehrlich committed May 3, 2021
1 parent 10f05cc commit fd8db09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useDebounce/useDebounce.js
Expand Up @@ -24,7 +24,7 @@ export default (callback, wait) => {
useEffect(() => {cb.current = callback}, [callback]);

// Cleanup pending timeouts when unmounting.
useEffect(() => () => clearTimeout(timeout.curren), []);
useEffect(() => () => clearTimeout(timeout.current), []);

return useCallback((...args) => {
clearTimeout(timeout.current);
Expand Down

0 comments on commit fd8db09

Please sign in to comment.