Now that mergeMap
is deprecated, and the source has this comment in it:
/* @deprecated resultSelector no longer supported, use inner map instead */
How do I use an "inner map" instead? I guess that means using the map
operator function inside of .pipe
, but the observable is not flattened, as it is with mergeMap
.
obs1$.pipe(map(() => obs2$)).subscribe(r => console.log(r === obs2$))
// > true
So, how do the equivalent of mergeMap
without it?