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

shareReplay can't unsubscribe #4316

Closed
ntduan opened this issue Nov 1, 2018 · 1 comment
Closed

shareReplay can't unsubscribe #4316

ntduan opened this issue Nov 1, 2018 · 1 comment

Comments

@ntduan
Copy link

ntduan commented Nov 1, 2018

Bug Report

Reproduction

const observable = Observable.create(observer => () => console.log('unsubscribe')).pipe(shareReplay(1))
const sub = observable.subscribe(v => console.log(v));
sub.unsubscribe()

not log unsubscribe

Expected behavior
log unsubscribe

Environment

  • RxJS version: 6.3.3

Possible Solution
rxjs5 is work

@cartant
Copy link
Collaborator

cartant commented Nov 1, 2018

Closing this because it's a known issue and has been addressed, but the PR has not yet been merged. See #4059

@cartant cartant closed this as completed Nov 1, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Dec 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants