How to detect rxjs related memory leaks in Angular apps
Disclaimer: I’m the author of the tool I mention below. This can be accomplished by keeping a list where new subscriptions are added to, and removing subscriptions from this list once it is unsubscribed. The troublesome part is observing subscriptions. A straightforward way to achieve this is by monkey-patching the Observable#subscribe() method, that is, replacing … Read more