-
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
mergeScan()
's accumulator doesn't receive any index
parameter
#4441
Labels
feature
PRs and issues for features
Comments
8 tasks
martinsik
added a commit
to martinsik/rxjs
that referenced
this issue
Jan 8, 2019
benlesh
pushed a commit
that referenced
this issue
Jan 30, 2019
* feat(mergeScan): add index to the accumulator function Closes #4441 * test(mergeScan): use marbles instead of "of()" * test(mergeScan): update spec, remove unnecessary dtest * readd index lost in merge.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug Report
Current Behavior
When using
mergeScan()
itsaccumulator
function never receivesindex
like all other operators.https:/ReactiveX/rxjs/blob/master/src/internal/operators/mergeScan.ts#L48
Reproduction
Expected behavior
The
accumulator
function should receiveindex
parameter with ever increasing numbers for every emission from source likescan
ormergeMap
do.https:/ReactiveX/rxjs/blob/master/src/internal/operators/mergeMap.ts#L13
https:/ReactiveX/rxjs/blob/master/src/internal/operators/scan.ts#L7
Environment
The text was updated successfully, but these errors were encountered: