react-timer-hook icon indicating copy to clipboard operation
react-timer-hook copied to clipboard

React timer hook

Results 16 react-timer-hook issues
Sort by recently updated
recently updated
newest added

If I call restart after the timer has already expired, the timer updates to the new Date but it doesn't start counting down. Simple Example: const [hasTimeExpired, setHasTimeExpired] = useState(false);...

Hi there, I have run into a use case where i need the miliseconds value from the `useTimer` hook. Is it possible to add this to the core library ?...

Tested by running/verifying the demo site locally. This will allow users to use the returned callbacks (start, pause, resume, restart) as dependencies of useEffect, useCallback, etc. without having the dependency...

The arguments of `useStopwatch` and `useTime` are not optional, so it doesn't match the typescript definition. I would just make the arguments in `index.d.ts` not optional so it is clear...

Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...

dependencies

Hi! Functions that return from the hook must be memoized because they can be used in effects, and the linter will require you to specify them depending. Now I had...

For some inexplicable reason, just using the hook to start a timer causes the component in question to re-render once per second. If you use the hook in a more...

When I click the start button multiple times after pausing, it always starts timing from the **last paused time**

I am looking to add sound and also intervals in the timer. Is this possible?