Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic watchers #3

Open
JerryDoubleU opened this issue Mar 6, 2019 · 4 comments
Open

Automatic watchers #3

JerryDoubleU opened this issue Mar 6, 2019 · 4 comments

Comments

@JerryDoubleU
Copy link

It would be great if this tool could automatically watch observables, so we could just plug a module into the app and then filter out interesting streams through the DevTools.

@JerryDoubleU
Copy link
Author

JerryDoubleU commented Mar 6, 2019

Something like Redux DevTools does for the NgRx - that would be a killer feature!

@xripcsu
Copy link
Owner

xripcsu commented Mar 14, 2019

I think that it would be hard to distinguish between different observables

for example

source1.pipe(
  filter(),
  map()
).subscribe()

source2.pipe(
  switchmap(() => source3),
  filter()
).subscribe()

We would need to show 6 marble diagrams for source1 and source2 and also on every emitted value from source2 it needs to create new marble diagram. We would not have any label for them so it would be very hard to find out what we want.

@JerryDoubleU
Copy link
Author

I agree, this is a complicated thing. I'm not familiar with the capabilities of Chrome DevTools plugin, but I have an idea, that a list would get created and you could select the streams that you're interested in labeled by the filename and line in the source code.

@chriszrc
Copy link

chriszrc commented May 8, 2020

I wonder if this would be possible to achieve with a decorator that could take an optional name, e.g @Watch('source1'). It would be really great to be able to see the rxJS actions without having to make actual code modifications. The decorators could stay in place and maybe just be turned off in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants