RX.JS Redux Observable Multiple Get requests at same time
问题 I am trying to set up an observable that currently receives an array of location IDs and then makes a get request for all of these at once and waits for the response for them all. Here is a sample: const fetchPhotosEpic = action$ => action$.ofType(LOCATIONS_RECEIVED) .map(action => action.payload) .mergeMap((data) => { let promiseArray = data.map(location => Observable.fromPromise(axios.get(photosUrl(location.id)))) return Observable.forkJoin( promiseArray ) }) .map(responses => responses.map