So because of the various setups we have I have a habit of running into places where I'd like to add the result of one observable to another, and then using both. Where I need the first one to complete before the other one
getUser()
.pipe(
mergeMap(user => forkJoin([
of(user),
getSomethingWithUser(user)
]))
)
.subscribe((result: [User, SomethingWithUser]) => /*And then use them*/)
The various *Map functions just seem to return the result of the final observable, which doesn't work so well when I want the result of them all