-
Notifications
You must be signed in to change notification settings - Fork 190
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
RxJS "pipeable" operators support #69
Comments
Understanding Operator Imports |
// rxjs v6.0.0
import { of } from 'rxjs';
import { filter, map, reduce } from 'rxjs/operators';
of(2, 'foo', 5, 'bar', 10)
.pipe( // pipeable is here
filter(value => !isNaN(value)),
map(value => value * 2),
reduce((acc, value) => acc + value, 0)
)
.subscribe(value => console.log(value));
// 34 |
This doesn't look like full RXJS 6.0 support yet. Could you document how to use vue-rx with RXJS 6 without the rxjs-compat layer? https://docs.google.com/document/d/12nlLt71VLKb-z3YaSGzUfx6mJbc34nsMXtByPUN35cg/edit |
Well it doesn't look like that many operators are actually used. So maybe it would be easier than I thought. My thought was that instead of using the global
We could also add development flags to run a check on the provided object bag to make sure that necessary features are included. |
RxJS now supports "pipeable" operators, it might make sense to support passing in the operator references through the
Rx
object bag during initialization, and then fallback to looking on the prototype. That might also make it easier to support otherObservable
implementations by letting the library users pass in adapter functions for their particular flavor ofObservable
. Areas like hereThe text was updated successfully, but these errors were encountered: