ng2-idle icon indicating copy to clipboard operation
ng2-idle copied to clipboard

timeout and idleStart function executing multiple times

Open ZahraFatima opened this issue 5 years ago • 1 comments

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/HackedByChinese/ng2-idle/blob/master/CONTRIBUTING.md#getting-help

Current behavior Timeout and IdleStart function executing multiple times, sometimes its executing twice and sometimes its 6 times too. This results in multiple logout calls on timeout and multiple warning messages on idleStart.

Please Advice.

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • @ng-idle version: 2.x I am using @ng-idle version: 2.0.0-beta.15
  • Angular version: 2.x I am using angular 5
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

In all browsers this issue can reproduce.

  • Language: [all | TypeScript X.X | ES6/7 | ES5] Typescript version ~2.5.3

  • Node: node --version = v9.11.1

ZahraFatima avatar Jul 19 '18 13:07 ZahraFatima

Angular 7

I'm currently looking into a case when in one deployed environment, onTimeoutWarning is firing in excess of 100 times.

Currently have no information to offer (as I have no idea, am currently researching).

Works correctly in all testing environments except where it is occurring.

Prinsn avatar Jan 10 '20 21:01 Prinsn