redux-batch icon indicating copy to clipboard operation
redux-batch copied to clipboard

Fix for graceful error propagation

Open olessavluk opened this issue 2 years ago • 1 comments

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:

  1. Place intentional error in reducer
  2. Dispatch action that crashes in the reducer
  3. 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 avatar Apr 26 '22 18:04 olessavluk

@olessavluk thanks for this!

pdesantis avatar Oct 25 '22 03:10 pdesantis