Closed aaronkzhou closed 3 years ago
I don't think I want to dispatch globally, you could probably use the "deps" to pass a function to all the epics that you use for globally handling errors.
You could probably wrap epics in a function that pipes all actions to some global observable (or function or whatever) with something like const myEpic = createEpic((action$, state$) => ...)
.
It may be more appropriate to use redux-observable if you want that kind of behavior though.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
scenario: I wanna dispatch different actions from different Epic.
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.