Adding a switch (or another better name) operator #7011
LcsGa
started this conversation in
Ideas / Feature request
Replies: 1 comment 1 reply
-
You could use
This will keep the order of calls and if you don't want to propagete their responses to your observer you could add |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes I need to subscribe to an observable in order to, for example, get a userId.
Then, using that id, I could send an http request and for that purpose I often end up using a switchMap.
The thing is that if I want to send more than one http requests, with all or some of them needing the userId, I would have to "bother" myself by adding a map to each switchMap.
And this is specifically for this purpose that I would love to have an operator that would just call for another observable but like tap, would keep the value unchanged.
Beta Was this translation helpful? Give feedback.
All reactions