-
Notifications
You must be signed in to change notification settings - Fork 3k
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
'cache()' should allow subscribe after unsubscribe #2010
Comments
... and here's another issue that leads me to believe |
Oh, it's probably a dupe of #1959 cache.observable = serviceCall
.expand(() => Observable.timer(period).concatMap(() => serviceCall))
.cache(1, period); |
@newsash we ended up removing the We do plan to revisit in the future and possibly provide one or more operators that have differing forms of caching. Everyone has differing opinions and use cases for what "caching" should mean and it's far more complex that it may seem at first. Some additional thoughts can be found here. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version: Latest
Code to reproduce:
Expected behavior:
"0" in console.
Actual behavior:
Nothing in console.
Additional information:
Subject should be nulled on outerSub unsubscribtion
https://github.com/ReactiveX/rxjs/blob/master/src/operator/cache.ts#L55
The text was updated successfully, but these errors were encountered: