-
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
Using Subjects as Observers #825
Comments
This is totally a bug. They should work as observers. It's half the point. |
Also, you shouldn't have to use |
Agreed. |
Add tests for Subject, BehaviorSubject and ReplaySubject to check whether they can be used as plain observers when given to Observable.subscribe(). Related to issue ReactiveX#825.
Add tests for Subject, BehaviorSubject and ReplaySubject to check whether they can be used as plain observers when given to Observable.subscribe(). Related to issue #825.
@staltz @ntilwalli I just tried every Subject type from the latest build and I couldn't reproduce this issue. If we can't reproduce it, can we close this? |
Yeah let's close, Tylor couldn't reproduce it either. |
@ntilwalli is right: There is a minor issue that Subjects are being unnecessarily wrapped in Subscribers. This is less of a "bug" and more of a "refactor". |
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. |
I think this is a bug. Currently RxJS 5 Subjects cannot be used as Observers in
source.subscribe(subject)
, even though Subject implements the Observer interface.This should be simple to fix, but should be accompanied by tests too.
The text was updated successfully, but these errors were encountered: