-
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
BehaviorSubject created with "create" does not have getValue() method #1890
Comments
yes, edited: looking into RxJS4 impl, it seems |
so suggestions to support variant of creation method as similar to |
I'm personally OK with accepting your #1894 PR to fix this bug and then add new functionality later, if we choose to do so. That seems like a much longer conversation and I don't want it to block v5.0.0 release. |
: makes sense, let's continue discussion in PR if it's acceptable or not (including details of implementation as well). We could leave this issue opened for further goals if PR's agreed to check in. |
This was an oversight. It should have the same arguments as the constructor and return a BehaviorSubject |
|
RxJS version: 5.0.0-beta.9
Code to reproduce:
`
var a = new Rx.BehaviorSubject('start');
var b = Rx.BehaviorSubject.create(a, new Rx.Observable(o => {
a.subscribe(o);
}));
console.log(b.getValue());
`
Expected behavior:
// output:
start
Actual behavior:
Uncaught TypeError: getValue is not a function
Additional information:
The text was updated successfully, but these errors were encountered: