tap operator's callback function should have an index parameter (like the map operator) #6702
iuliust
started this conversation in
Ideas / Feature request
Replies: 1 comment
-
Dupe of #5461 (comment), Core's tap fn signature is desinged to be compatible with subscriber explicitly: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/tap.ts#L115-L117 Creating userland operator to achieve those beahvior is easy enough as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using the map operator, one can get the index of current event like so:
This is quite useful.
Unfortunately, the tap operator does not offer this feature. I think it would be a useful addition to the framework.
Beta Was this translation helpful? Give feedback.
All reactions