React Timer Hook Versions Save

React timer hook

v3.0.7

9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/amrlabib/react-timer-hook/compare/v3.0.6...v3.0.7

v3.0.5

2 years ago
  • Typescript file definition update
  • Update readme file with correct date object type

v3.0.4

2 years ago
  • Typescript file definition update
  • Fix useStopwatch for browser tab inactive behaviour of setTimeout and setInterval

v3.0.3

3 years ago

Update peerDependencies range in package.json

v3.0.2

3 years ago
  • Change default of useTimer autoStart to be true if not passed in settings

v3.0.1

3 years ago
  • update typescript definition file with restart and reset functions changes
  • put back expiry timestamp validation in useTimer
  • set default autoStart to true in restart and reset functions

v3.0.0

3 years ago
  • Create useInterval hook to handle interval reference and correct callback function with updated state and props
  • Change useTimer, useStopwatch and useTime implementation to use useInterval 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 in useTimer
  • Support autoStart parameter in restart function in useTimer

v2.0.7

3 years ago
  • add support to offsetTimestamp in useStopwatch to fix #42

v2.0.6

3 years ago

v2.0.5

3 years ago
  • Fix calling onExpire incorrect time when the timer is less than 1 second