joshburgess / redux-most

Most.js based middleware for Redux. Handle async actions with monadic streams & reactive programming.
https://www.npmjs.com/package/redux-most
MIT License
139 stars 14 forks source link

Append an epic to an in-progress epic #36

Closed jackmellis closed 3 years ago

jackmellis commented 5 years ago

I’m looking for a way to append epics to the epic middleware.

I’ve experimented with replaceEpic but this effectively restarts all of your epics, so any epics in an “ongoing” state are just abandoned and any actions they emit are lost. Similarly, if I have an epic that utilises periodic or or event listeners, I am forced to kick start them again following a replaceEpic call.

Is there some way to persist your currently-running epics whilst adding new ones?

jackmellis commented 4 years ago

hi, any chance you've had a minute to think about this? I'm trying to come up with solutions myself but I'm starting to worry this isn't doable...