-
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
fix(share): propagate closed to firehose sources #6370
Conversation
// up _before_ the subscription to the source occurs. This is done so that | ||
// the assignment to the source connection's `closed` property will be seen | ||
// by synchronous firehose sources. | ||
subscriber.add(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🏆
} | ||
}); | ||
|
||
synchronousObservable.pipe(shareReplay(), take(3)).subscribe(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like we'd still want this test for refCount: true
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. However, I think we may want to add the test back for shareReplay
in the refCount: true
case.
Description:
This PR fixes
share
so that it wires up the teardown before subscribing to the source - ensuring the assignment to the subscriber'sclosed
property is propagated to the firehose source.The skipped firehose test has been enabled and the firehose tests that related to now-deprecated operators have been removed.
Related issue (if exists): #5834 (I've closed this because it related to the now-deprecated APIs)