I have two epics, epicA and epicB.
B is subject to back-pressure since the api calls associated with it are slower. (uploads)
However, I need to make sure that all of the api requests that come from B complete before A.
so if the requests are
B1....A1....B2...B3...
If B1 has not completed by the time that B2 fires, the resolution should be
B1, B2, B3, A1
If B1 completes before B2 is fired, resolution should be
B1, A1, B2, B3
I thought at first that
const bigEpic = epicA.concat(epicB)
would be an answer, but I don't think that makes sense
Another idea:
const bigEpic = action$ => epicA(action$).concat(epicB(action$))