Description
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
If a js error occurs as the result of an emitted action from a redux-observable epic then it stops all epics from listening to new actions. This is pretty nasty since on the front-end it still appears as if the app is working but in the background nothing is getting saved.
I tried catching the error in my epic but for some reason it doesn't catch errors that are caused by the resulting emitted action.
I thought that upgrading to version 1.0.0 redux-observable could fix the issue but unfortunately it remains.
The issue is different than this issue since the error is getting triggered in a reducer that occurs after the epic has emitted it's output redux action so catching it with .error
in the chain of observables doesn't work.
If the current behavior is a bug, please provide the steps to reproduce and a minimal demo of the problem using JSBin, StackBlitz, or similar.
https://stackblitz.com/edit/redux-observable-playground-qtughj?file=ping-pong.js
Unfortunately errors in Stackblitz result in the whole page going grey and displaying the error message which isn't helpful if you want to display behaviour post-error occurring, and the redux-observable demos on jsbin no longer work, so you'll have to take my word for it that if the PING button was still visible after the js error occurred and you pushed it then nothing would happen because the rootEpic will have completely stopped listening for new actions.
What is the expected behavior?
I would expect the error triggered in the reducer to be caught by the error operator or at the very least not stop the entire rootEpic from listening to new actions.
Which versions of redux-observable, and which browser and OS are affected by this issue? Did this work in previous versions of redux-observable?
All versions.
I've already posted something on Stack Overflow unfortunately with no responses: https://stackoverflow.com/questions/53164276/redux-observable-cant-catch-error-from-emitted-action-error-stops-action-strea