use-timer icon indicating copy to clipboard operation
use-timer copied to clipboard

A timer hook for React

Results 15 use-timer issues
Sort by recently updated
recently updated
newest added

It seems if I lock my phone and get back to the browser, it slows down and after 5 minutes the timer has just counted 20 seconds. How can the...

Hello thanks for making this libarary. But I have a question with calculating time over. ``` react_1.useEffect(function () { if (status !== 'STOPPED' && time === endTime) { dispatch({ type:...

Hey wassup, I am changing the initial time when a state is changing ( so it should be re rendernig ) but is not updating to the new time. The...

Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.5.0. Release notes Sourced from jsdom's releases. Version 16.5.0 Added window.queueMicrotask(). Added window.event. Added inputEvent.inputType. (diegohaz) Removed ondragexit from Window and friends, per a spec...

dependencies

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8. Commits a2c5da8 1.3.8 af5c6bb Do not use Object.create(null) 8b648a1 don't test where our devdeps don't even work c74c8af 1.3.7 024b8b5 update deps, add linting...

dependencies

Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19. Commits 9a6faa0 4.4.19 70ef812 drop dirCache for symlink on all platforms 3e35515 4.4.18 52b09e3 fix: prevent path escape using drive-relative paths bb93ba2 fix: reserve...

dependencies

- default `endTime` value changes depending on timer mode - added test - changed Readme.md

### onTimeUpdate wrong triggering time `onTimeUpdate` function is called on component mount. I think it should be called ONLY when timer `status` is '**RUNNING**'. Otherwise there should be some checks...

I think in most cases user will use `0` as endTime in decremental mode.