-
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
Observable behaves differently when wrapped #4095
Comments
The problem appears to be related to the returning of a teardown function instead of returning the subscription itself. If the observable is wrapped without the intermediate teardown function, it works fine: const wrappedAjax$ = new Observable<State>(subscriber => ajax$.subscribe(subscriber)); Wrapping the |
I have a solution for this. I will submit a PR tomorrow. |
When unsubscribing a subscriber's parent, make sure that the subscriber itself is not unsubscribed. Closes ReactiveX#4095
When unsubscribing a subscriber's parent, make sure that the subscriber itself is not unsubscribed. Closes ReactiveX#4095
When unsubscribing a subscriber's parent, make sure that the subscriber itself is not unsubscribed. Closes ReactiveX#4095
Bug Report
Current Behavior
Given this code:
The output is as expected:
However, if the observable is wrapped and then subscribed to, the output is different and not as expected.
Code:
Output:
This seems to be a regression from one of the releases after 6.2.2, as that's what I just upgraded from.
Reproduction
The text was updated successfully, but these errors were encountered: