SupremeTechnopriest / react-idle-timer

User activity timer component
https://idletimer.dev
MIT License
1.15k stars 143 forks source link

I want to start the timer when my user logs in ,so i have a condition and if condition satisfies then the timer should start from idleTimer . #347

Closed Mursalin7 closed 1 year ago

Mursalin7 commented 1 year ago

I want to start the timer when my user logs in ,so i have a condition and if condition satisfies then the timer should start from idleTimer .Please help

SupremeTechnopriest commented 1 year ago

The startManually prop and start method will do what you want.

https://idletimer.dev/docs/api/props#startmanually https://idletimer.dev/docs/api/methods#start