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
Hi)
Thank you for a nice and clean lib.
I have a question/proposal for you. How is it supposed to be used to run some logic at the end of the timer? For example I need to trigger log out when timeLeft === 0, but it's a default value. Maybe it's better if timeLeft would be not equal zero by default on start/restart but to equal initialTime? Or maybe you're working on some kind of onExpire callback?
The text was updated successfully, but these errors were encountered:
Hey @mikhailgagarin onExpire callback is not something that should be added in my opinion. But I'm thinking about adding some extra fields that would show a current state of a counter like started, expired and running. I think it would solve your issue, right?
Hi)
Thank you for a nice and clean lib.
I have a question/proposal for you. How is it supposed to be used to run some logic at the end of the timer? For example I need to trigger log out when
timeLeft === 0
, but it's a default value. Maybe it's better iftimeLeft
would be not equal zero by default on start/restart but to equalinitialTime
? Or maybe you're working on some kind ofonExpire
callback?The text was updated successfully, but these errors were encountered: