-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stopWatching() does not work #53
Comments
Hello, Thanks! |
Project is too complex to include everything, but here is minimum code on how I am using the service: timeout.component.ts
another component:
|
Let me share with you how I'm using it. app.module.ts (imports/global config) app.component this.userIdle.onTimerStart().subscribe(count => { this.userIdle.onTimeout().subscribe(() => { myService login(***) logout() { |
My userIdle.stopWatching() only works properly when called within userIdle.onTimeout() |
userIdle.stopWatching is still not working and trigger onTimout Function. Please Help |
I'm also having an issue with ping. It appears that ping just doesn't stop when calling stopWatching() "angular-user-idle": "^2.2.4",
|
I also having the same issue. When userIdle.stopwatching() is calling onTimerStart() is calling internally. Please help me to resolve this issue |
I don't know if this will help anyone, but if you use a subscribe for onTimerStart(), the value will be null when it is called by userIdle.stopWatching().
|
value === null when it is called from stopWatching() rednez#53 (comment)
Describe the bug
Calling stopWatching() fires onTimerStart() for some reason and does not stop watching. I have ping set to 2 seconds and the user idle service continues to ping.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Service stops watching, does not ping or watch for user idle anymore
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: