-
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
Export all operators and observables from index file #1646
Comments
I think this issue is related to #1386 |
@staltz @trxcllnt you both 👍 'ed this.. does this have some bundling/modularity/tree-shaking benefit I'm not aware of? It seems like it would be bad for bundling to use this because it would include a whole mess of modules you probably don't want to use. However, it might work with tree-shaking? I don't know. |
@benlesh from what I understand, webpack etc. should be able to tree-shake ES6 exports/imports done this way. Worth testing to make sure though. |
It would be great if those operators were "lodash" like, in that the first argument is the observable, so you don't have to do weird ways of calling them. map.call(filter.call(of('a'), x => !!x), x => x * 2); vs map(filter(of('a'), x => !!x), x => x * 2); This way we wouldn't have to wait for a new version to change them later. |
@david-driscoll that's exactly what I'm doing for IxJS so that we don't have that silly |
Is this bug fixed by Lettable Operators? From that page:
|
I think it's no longer an issue with export organization changes in v6. |
When using the es next function bind method of importing operators, it's kind of tedious to write it all one line after each other, like this:
it would be great to have an index file that exports all operators so we can import our operators like this:
same thing for observable(s)
The text was updated successfully, but these errors were encountered: