-
Notifications
You must be signed in to change notification settings - Fork 415
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
Rx.Observable.merge seems to return an array not a new observable #26
Comments
Hello, It looks like you are calling it wrong. const example = Rx.Observable.of(
Rx.Observable.timer(1),
Rx.Observable.timer(1),
Rx.Observable.timer(1)
) This should give you the correct behavior. 👍 |
thanks! :) hate to beat a horse, but why not allow for an array as well? I am sure I am not the only one to make such a mistake or to make the same request! |
oh duh, if you allow for an array, it will return an array. Ughhh I think it's bad the way it is.
Right now |
I agree the behavior seems a little strange. I cannot speak to the intentions though, for that you will need to open up a ticket on official RxJS repo. Feel free to post a link here if you do. 👍 |
yeah thanks; I think in general with statically typed languages you can have overloaded functions/methods that return different types based off the input type, but with JS and no real overloaded methods/functions, it sure would make things easier if methods/functions always returned the same type |
I did submit an issue, we will see what they say thanks! |
Not sure if this is a doc bug or library bug but
Rx.Observable.merge seems to return an array not a new observable
but the docs say:
here is my proof:
lastly I want to say thank you for these docs, hopefully I am right about this bug, and in that case very willing to tolerate a little bit of wonkiness for a bit, thanks
The text was updated successfully, but these errors were encountered: