You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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