-
Notifications
You must be signed in to change notification settings - Fork 67
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
content(rxjs): avoid memory leaks #37
Conversation
Use `publishReplay` and `refCount` instead of `shareReplay` to avoid memory leaks. See ReactiveX/rxjs#3336
Hi, It actually depends on the use case that you have. If you have an http Observable that will just give you one value, than you can perfectly use this. If you'd want to change this to something that reflects some nuance on when to use which one, I'm definitely up for it. You can read about it in this article that I wrote: https://blog.strongbrew.io/share-replay-issue/ |
@KwintenP The application should work stably, and not fall with every unexpected change. |
There's an open PR that adds an option to |
The PR was merged. |
I'll update this asap with the |
@d3lm Thanks for, I can. But what do you think about that? ReactiveX/rxjs#4530 |
Thanks for changing your PR. I think that what's discussed in the issue you mentioned is for this checklist item negligible because I think we can merge this one. @KwintenP What do you say? |
SGTM. Thanks for your addition! |
Use
publishReplay
andrefCount
instead ofshareReplay
to avoid memory leaks.See ReactiveX/rxjs#3336