-
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
forkJoin operator doesn't accept an array of observables #594
Comments
I'm just gonna comment here because my issue is virtually identical. This is also an issue with |
@Blesh I also think this is a concern. Unfortunately, TypeScript isn't exactly helpful in this regard. The only solution is to splat the Array when you call forkJoin/combineLatest, which you can only do in es6/ typescript. I would be ok with a call to "flatten" arguments into a flat list of Observables, no matter how deeply-nested. |
I was thinking about this bit, as @trxcllnt mentioned it requires some additional code to make it work with typescript. Trying to create some changes to trigger perf comparison to see if it's not hurting. |
I'm sort of indifferent about this one. We can try adding the checks and see how it affects the performance. If it's a hit, then I say we don't do it, and people can just use |
: That's I'd like to verify :) if changes does not hurt performance, supporting this would be good. I should come up with numbers. |
Initial attempt blocked due to same reason as #660, property based stub does not allow overload. Trying some other approaches. |
ForkJoin doesn't seem to maintain the behavior from Rx4 of supporting both .forkJoin(a,b,c) and .forkJoin([a,b,c]). If you try to do the latter (an array of observables) it gives the exception
The text was updated successfully, but these errors were encountered: