rxjs-spy icon indicating copy to clipboard operation
rxjs-spy copied to clipboard

Auto tagging

Open ewhauser opened this issue 4 years ago • 2 comments

I'm starting to explore rxjs-spy for use in a large Angular application. We have about ~1000 components so there's a large number of observables. Prior to discovering rxjs-spy, I was exploring using a Typescript compiler plugin to automatically generate debugging information for each subscription (i.e. name, location, and code of each subscription) and then using that information for leak detection in my tests.

I was thinking about pivoting this code to use rxjs-spy under the covers instead. Is there any downside to automatically adding tag(...) to every subscription? It's relatively straightforward to do in a compiler plugin - the toughest part seems like coming up with a usable name.

Thanks!

ewhauser avatar May 25 '20 16:05 ewhauser

The RxJS Tools that I'm working on do something similar - but not using tag - and a whole lot more. All of my tool-related development is happening there; I don't imagine I will be doing any further work on rxjs-spy.

cartant avatar May 25 '20 22:05 cartant

I subscribed. I'd love to help with it / try it out @cartant

joshribakoff avatar Jun 27 '20 21:06 joshribakoff