Ionic event fires too many times. Incremented by one each time it's triggered?
So I just spent a little while struggling with this as well. The end result for me was that I had the subscribe()
on a component which was getting destroyed and recreated as I navigated around the application, but I did not have an OnDestroy
event handler on the component with unsubscribe()
so every time it got instantiated it added another subscription handler.
NOTE: you must also pass the same event handler to unsubscribe()
, see Ionic2: Unsubscribe Event to Avoid Duplicate Entries?