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

Subject.asObservable() missing? #1108

Closed
frankbenoit opened this issue Dec 28, 2015 · 7 comments
Closed

Subject.asObservable() missing? #1108

frankbenoit opened this issue Dec 28, 2015 · 7 comments
Labels
feature PRs and issues for features help wanted Issues we wouldn't mind assistance with.
Milestone

Comments

@frankbenoit
Copy link

Hi

either it is missing, or it is missing in the migration guide?

Frank

@staltz
Copy link
Member

staltz commented Dec 28, 2015

Missing in the migration guide. At least from my perspective it seems we are intentionally removing it instead of forgetting to add it. Is that correct @Blesh @kwonoj @trxcllnt ?

@benlesh
Copy link
Member

benlesh commented Dec 29, 2015

Yes. Unless there's a compelling reason to add it.

@mattpodwysocki
Copy link
Collaborator

@Blesh of course there's a compelling reason to add it. For example, exposing Subjects directly is usually a code smell, instead you want to hide the ability for the consumer of the API to send next calls, etc to it, so to call asObservable prevents that.

@benlesh
Copy link
Member

benlesh commented Dec 29, 2015

Fair, but is that a solid enough reason to add the weight to the type, though?

(honestly just playing devil's advocate)

@mattpodwysocki
Copy link
Collaborator

@Blesh absolutely, as there is little to no overhead in doing so as in RxJS v4 asObservable

@benlesh
Copy link
Member

benlesh commented Dec 29, 2015

Yep. Just want the consideration in the issue. I totally agree we should add it.

@benlesh benlesh added feature PRs and issues for features priority: high labels Jan 15, 2016
@benlesh benlesh added this to the 5.0.0-beta.2 milestone Jan 15, 2016
@benlesh benlesh added the help wanted Issues we wouldn't mind assistance with. label Jan 27, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jan 28, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jan 28, 2016
kwonoj added a commit to kwonoj/rxjs that referenced this issue Jan 29, 2016
@kwonoj kwonoj closed this as completed in aca3dd0 Feb 1, 2016
@lock
Copy link

lock bot commented Jun 7, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 7, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature PRs and issues for features help wanted Issues we wouldn't mind assistance with.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants