-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Documentation for RxJS Unsubscribing #22410
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
Comments
See if this PR talks about it #21423. If it doesn't it would be a good idea to ask to be added imo |
Thanks! I reviewed that PR, I don't see anything. I asked... we'll see! |
This topic is evocated at different places in the documentation. We can find example in the Router documentation ;
This explain they are, directly related to a technical element (router, Http) rather than a generaly. |
This is a good question, and yes, it needs to be documented. I assigned to myself to be addressed in a follow-up to #21423 |
I added @jbogarthyde as another assignee, so it's on her radar to add this to her backlog for RxJS doc as well. |
I collected information about this in a SO answer that has some traction (it appears devs are using the approach I document). I would be happy to update my answer there again to point to the documentation once it's released. There is also this issue which was closed asking about a specific scenario of what I assume the PR will cover |
Here are some other interesting Stack Overflow posts: SO Post: Angular2: Unsubscribe from http observable in Service SO Post: Angular 2 Subscribe / Unsubscribe Observables in case of http calls |
Any updates on this? @jasonaden |
ummm yea I agree. There needs to be more documentation on this subject. Like the OP, I read some articles and saw some guys making suggestions with async pipe and using other rxjs operators, but I would like to hear it from the angular team on the recommended approach. |
Closing as this topic, https://angular.io/guide/observables talks a great deal about unsubscribing. In addition, observables in general are documented in the official RxJS documentation: https://rxjs.dev/guide/subscription |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a...
Current behavior
I can't seem to find any information on unsubscribing from RxJS objects in Angular.
I've found a few online articles that discuss it
Expected behavior
It would be nice to get some official guidance on this topic.
Maybe it is there and I just can't find it? I've been googling "angular rxjs unsubscribe"
The text was updated successfully, but these errors were encountered: