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

Barrel for observable creation operators ? #3003

Closed
ghetolay opened this issue Oct 26, 2017 · 4 comments
Closed

Barrel for observable creation operators ? #3003

ghetolay opened this issue Oct 26, 2017 · 4 comments

Comments

@ghetolay
Copy link
Contributor

ghetolay commented Oct 26, 2017

Just wondering why there isn't a barrel file at rxjs/observable/ reexporting all operators like for rxjs/operators ?

So we could do

import { of, from, interval } from 'rxjs/observable';
@davideast
Copy link

I like this idea. We would have to check to see that it would still be easy to tree-shake out unneeded dependencies.

Thoughts @benlesh?

@benlesh
Copy link
Member

benlesh commented Oct 31, 2017

I was discussing something similar with @jayphelps the other day.

At first I wanted to just export everything from rxjs...but realized that the static methods would be problematic,,, e.g. concat the observable creation method, and concat the functional operator.

There are a few options here, and this is one of them that has been discussed.

@benlesh
Copy link
Member

benlesh commented Oct 31, 2017

I think I'd like to keep the discussion over here: #2912

Closing this as a duplicate

@benlesh benlesh closed this as completed Oct 31, 2017
@lock
Copy link

lock bot commented Jun 6, 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 6, 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

3 participants