redux-batch
redux-batch copied to clipboard
Fix for graceful error propagation
Hello!
Currently, if an error is thrown during dispatch - it breaks future store notifications. This PR should fix that, to match the default dispatch behaviour.
Steps to reproduce:
- Place intentional error in reducer
- Dispatch action that crashes in the reducer
- Dispatch other actions and you will see that listeners do not get notified of state changes. Compared with "plain" redux where listeners updated
Let me know if the issue & this solution is clear to you
@olessavluk thanks for this!