Skip to content

Releases: amrlabib/react-timer-hook

v3.0.8

20 Oct 16:15
Compare
Choose a tag to compare

What's Changed

New Contributors

  • @OFK0 made their first contribution in #105

Full Changelog: v3.0.7...v3.0.8

v3.0.7

20 Jul 18:01
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.0.6...v3.0.7

V3.0.5

12 Sep 17:11
Compare
Choose a tag to compare
  • Typescript file definition update
  • Update readme file with correct date object type

v3.0.4

18 Jun 16:03
Compare
Choose a tag to compare
  • Typescript file definition update
  • Fix useStopwatch for browser tab inactive behaviour of setTimeout and setInterval

v3.0.3

11 May 13:38
Compare
Choose a tag to compare

Update peerDependencies range in package.json

v3.0.2

19 Apr 19:59
Compare
Choose a tag to compare
  • Change default of useTimer autoStart to be true if not passed in settings

v3.0.1

17 Apr 15:15
Compare
Choose a tag to compare
  • 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

17 Apr 13:45
Compare
Choose a tag to compare
  • 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

24 Dec 18:39
Compare
Choose a tag to compare
  • add support to offsetTimestamp in useStopwatch to fix #42

v2.0.6

05 Dec 16:44
Compare
Choose a tag to compare