-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
JS event listeners infinitely incrementing in batches of 2.
Version info
Angular: 10.0
Firebase: 7.13.1
AngularFire: 6.0.2
Verified on Chrome on macOS. Safari on iPhone heats up the device when loading the affected site.
How to reproduce these conditions
Steps to set up and reproduce
- Create a new Angular project using the CLI
- Add AngularFire using
ng add @angular/fire - Add configuration and
AngularFireAnalyticsModule
Please note that the problem may not be with AngularFireAnalyticsModule but it is enough to reproduce the error. I am getting this error on a project that uses MixPanel too.
StackBlitz: https://angular-fire-start-d8ivab.stackblitz.io/
Please open DevTools > Performance Monitor and note the "JS event listeners" count increase
Editable StackBlitz: https://stackblitz.com/edit/angular-fire-start-d8ivab?file=app%2Fapp.module.ts
Expected behaviour
The JS event listeners should be static after a certain point. (Or should be cleaned up regularly).
