We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02b5de1 commit c4555caCopy full SHA for c4555ca
src/useTimer.js
@@ -10,14 +10,14 @@ export default function useTimer(settings) {
10
11
function clearIntervalRef() {
12
if (intervalRef.current) {
13
+ setIsRunning(false);
14
clearInterval(intervalRef.current);
15
intervalRef.current = undefined;
16
}
17
18
19
function handleExpire() {
20
clearIntervalRef();
- setIsRunning(false);
21
Validate.onExpire(onExpire) && onExpire();
22
23
@@ -35,7 +35,6 @@ export default function useTimer(settings) {
35
36
37
function pause() {
38
39
40
41
0 commit comments