Open CHBaker opened 6 years ago
I had the same issue today.
I'd be happy to submit a pull request, I just couldn't find in the source code where I could add the onDestroy hook and what to unsubscribe from
Any fix for that ?
I'm unable to recreate this one. If someone can help set up the recreated error https://stackblitz.com. I can start debugging.
I can try to recreate it next week, I know it has to do with a subscription that is not unsubscribed from in the source code, It might be caused by lazy loaded routes
I don't know if it's necessarily related to lazy loaded routes as I'm also seeing this error and do not have lazy loaded routes in my app.
I'm not able to reproduce this issue reliably, but when it does fail, it fails spectacularly and crashes the entire app.
yes @davidalee you're right as far as I can tell it isn't connected. It looks like it errors out when the notification is manually destroyed at the same time as it's being animated out.
Hey, I'm getting this error when I click the notification for it to disappear.
This is very bad for performance as this error hits 365 times in my app because it executes change detection though the entire component tree. This error is coming from Angular's changed detection running right after it's destroyed, looking for it. I'm not sure how to fix it though, or prevent it maybe in the source code for angular2-notifications