-
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
Conflict between mergeStatic
and mergeMap
#1448
Comments
I would prefer explcit signature, such as |
@kwonoj @david-driscoll heh, I prefer the overloaded signature. |
I'm for the overloaded signature as long as it doesn't affect performance. |
This would be a minor change, just check to see if https://github.com/ReactiveX/RxJS/blob/master/src/operator/mergeMap.ts#L25 |
I'm ok with overloaded, explicit signature's my personal preference :) Since we already have micro perf for |
Closed via #1453. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
RxJS version:
latest ( maybe beta2, not 100% sure).
Code to reproduce:
Expected behavior:
Not sure what the expected behavior is (see additional)
Actual behavior:
mergeMap
only accepts concurrency as the third parameter, though the signatures say otherwise.Additional information:
Basically I noticed this issue yesterday, where I was trying to add concurrency to some mergeMap calls, and I noted that the signatures allow for concurrency as the second argument, if you have no result selector. When I ran the code (and looked at the code) this was incorrect. The code only expects concurrency as the last parameter.
This is almost certainly my doing (unintentionally I swear!). 😄
My question is, which is the way RxJS5 should land?
mergeMap
signatures to correctly reflect the location of concurrency as strictly the third argument.mergeMap
operator to allow for concurrency as the second argument, if a result selector is not needed.The text was updated successfully, but these errors were encountered: