Releases: amrlabib/react-timer-hook
Releases · amrlabib/react-timer-hook
v3.0.2
v3.0.1
v3.0.0
- Create
useInterval
hook to handle interval reference and correct callback function with updated state and props - Change
useTimer
,useStopwatch
anduseTime
implementation to useuseInterval
for cleaner code - Handle resume in
useTimer
in different way, instead of decrementing current seconds it will calculate the expiry timestamp and then work by calculating timestamp every second, this way it is more accurate - Support
autoStart
settings inuseTimer
- Support
autoStart
parameter inrestart
function inuseTimer
v2.0.7
v2.0.6
- Add demo on github pages https://amrlabib.github.io/react-timer-hook/