I have a requirement to write an @Effect() which gets an array as input and dispatches api calls to a REST service - each element should produce a call. I then need to dispatch an action to handle the response. A lot of sites recommend using forkJoin but it seems that it waits for all requests to be finished which is not what i reqiure.
I've tried this (without the effect, just a basic example):
const arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const arrObservable$ = from(arr);
arrObservable$
.pipe(mergeMap(x => this.http.get('https://jsonplaceholder.typicode.com/posts')))
.subscribe(x => console.log(x));
But i'm not totally sure the requests are in fact dispatching in parallel.
Thanks in advance.