redux-observable dispatch actions
问题 I need to dispatch some actions in some order using redux-observable however, it takes just last action to dispatch. Please see example: export const fetchClientsEpic = (action$, { dispatch }) => action$ .ofType(fetchClients) .mapTo(fetchClientsPending(true)) .mergeMap(() => { return ajax .getJSON('some/get/clients/api') .map((clients: IClient[]) => { return fetchClientsSuccess( map(clients, (client, index) => ({ key: index, ...client, })), ); }); }); fetchClientsSuccess is dispatched with