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

Get only "active" subscriptions #48

Open
jeusdi opened this issue Jun 7, 2019 · 1 comment
Open

Get only "active" subscriptions #48

jeusdi opened this issue Jun 7, 2019 · 1 comment

Comments

@jeusdi
Copy link

jeusdi commented Jun 7, 2019

I'm getting this list of subscribers:

image

As you can see, State is incomplete and Unsubscribed is true. What does it mean? All subscriptions are created using async angular pipe.

How could I get only current "active" subscriptions?

And how could I get only last snapshot?

@anton164
Copy link

I believe the stream is incomplete because the observable is hot (maybe you've used shareReplay?). This essentially means that even though there are no subscribers, the observable "lives on" and doesn't complete.

This could be useful to read more about it: https://itnext.io/the-magic-of-rxjs-sharing-operators-and-their-differences-3a03d699d255

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

2 participants