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
Hello,
First of all thanks a lot for the lib and your continuous work on it
It would be highly valuable for my project to be able to handle a dynamic number of timers (dynamicity making it incompatible with calling useTimer n-times)
The API could look like this:
exportfunctionuseMultipleTimers(settings: TimerSettings): TimerResultinterfaceTimerSettings{// no expiryTimestamp: it MUST be defined at runtime (start or restart), making start & restart identical functionsonExpire?: (timerId)=>void;}interfaceTimerResult{getRemainingTime: (timerId: string)=>{seconds: number;minutes: number;hours: number;days: number;};getIsRunning: (timerId: string)=>boolean;start: (timerId: string,newExpiryTimestamp: Date,autoStart?: boolean)=>void;pause: (timerId: string)=>void;resume: (timerId: string)=>void;}
I could give it a go implementing it, but I am looking forward for your opinion beforehand ;)
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
First of all thanks a lot for the lib and your continuous work on it
It would be highly valuable for my project to be able to handle a dynamic number of timers (dynamicity making it incompatible with calling useTimer n-times)
The API could look like this:
I could give it a go implementing it, but I am looking forward for your opinion beforehand ;)
Thanks!
The text was updated successfully, but these errors were encountered: