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

Timeout instance still running after the host component is destroyed #121

Open
sulha199 opened this issue Aug 29, 2019 · 0 comments
Open

Comments

@sulha199
Copy link

Timeout instance still running after the host component is destroyed. This happens on the build version generated by ng build.

Error: ViewDestroyedError: Attempt to use a destroyed view: detectChanges
    at viewDestroyedError (core.js:17883)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:28142)
    at checkAndUpdateView (core.js:27541)
    at callWithDebugContext (core.js:28411)
    at Object.debugCheckAndUpdateView [as checkAndUpdateView] (core.js:28113)
    at ViewRef_.push../node_modules/@angular/core/fesm5/core.js.ViewRef_.detectChanges (core.js:18930)
    at PopperController.push../node_modules/ngx-popper/fesm5/ngx-popper.js.PopperController.applyChanges (ngx-popper.js:645)
    at ngx-popper.js:623
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:24340)

Show timeout still running and then create another hidetimeout after host component is destroyed.

push../node_modules/ngx-popper/fesm5/ngx-popper.js.PopperController.scheduledHide | @ | ngx-popper.js:614
-- | -- | --
  | push../node_modules/ngx-popper/fesm5/ngx-popper.js.PopperController.show | @ | ngx-popper.js:546
  ...
  | push../node_modules/ngx-popper/fesm5/ngx-popper.js.PopperController.scheduledShow | @ | ngx-popper.js:591
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