I am currently facing an issue with mapping an array of items to observables and then combining them using the merge
operator. My goal is to achieve this using lettable operators. Here's an example of what I've been attempting:
// obs is an array of observables
from(obs).pipe(merge());
However, when I subscribe to this setup, it simply emits an array of observables right away instead of emitting the merged observable values.
I have experimented with the following approach:
from(obs).pipe(mergeMap(ob => ob));
Surprisingly, this method works as intended. But I expected that using .merge
would produce the same outcome. Is there a way for me to flatten the observable by utilizing merge
?