Rx.Observable.merge seems to return an array not a new observable
See original GitHub issueNot 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:
signature: merge(input: Observable): Observable
Turn multiple observables into a single observable.
Rx.Observable.timer(1)
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
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Rx.Observable.merge is not accepting Array of ... - GitHub
In RC1 passing an array into merge still returns a nested Observable as stated in the original issue. 2
Read more >How to merge an array of Observables into a single ...
I'm stuck at the return merge(observableRequests) part as I can't get the return type right and I'm not too versed in Rxjs functions....
Read more >merge multiple observables to an observable array - MSDN
Hi I am trying to merge a number of observables to an observable array. Here an example that works in fsi. (sorry that...
Read more >5 helpful RxJS solutions. to everyday problems - Medium
RxJS is a javascript library that allows us to code reactively using observable streams. With observables and functions provided by RxJS we ...
Read more >5 helpful RxJS solutions. to everyday problems - Medium
RxJS is a javascript library that allows us to code reactively using observable streams. With observables and functions provided by RxJS we ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello,
It looks like you are calling it wrong.
merge
takes a variable number of observables, not an array. Try calling it like this:This should give you the correct behavior. 👍
I did submit an issue, we will see what they say
https://github.com/ReactiveX/rxjs/issues/2274
thanks!