Skip to content
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

Re-enter angular2 component cause multiple 'Idle' instance subscribing #48

Closed
vincent-cm opened this issue Apr 11, 2017 · 1 comment
Closed

Comments

@vincent-cm
Copy link

In my application, there is a necessary to frequently re-visit a core component. I follow the example to reset the idle using idle.watch() every time the component class constructs. The behaviour is wrong so that each visit will create a running instance. Thus multiple onTimeout, onIdleEnd event will fire together when due. Even if I have programmably enforce idle.stop when the component onDestroy.

@vincent-cm vincent-cm changed the title Re-enter angular2 component cause multiple 'Idle' instance running Re-enter angular2 component cause multiple 'Idle' instance subscribing Apr 11, 2017
@vincent-cm
Copy link
Author

unsubscribe programmably in OnDestroy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant