Skip to content

Commit 30b904b

Browse files
committed
Update hook dependencies
1 parent d98d340 commit 30b904b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/typescript-jest/src/hooks/useTimer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const useTimer = (onFinish: () => void, time: number = 4000) => {
3636
return () => {
3737
clearInterval(timer);
3838
};
39-
}, [timeRemaining, onFinish, resetTimer, setTimeRemaining]);
39+
}, [timeRemaining, onFinish, resetTimer, setTimeRemaining, isPaused]);
4040

4141
return { timeRemaining, resetTimer, isPaused, toggleTimer };
4242
};

0 commit comments

Comments
 (0)