You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2018. It is now read-only.
there is a reducer listening for LoadAllFailureAction and does changes to some flags in store.
Now, if in handling that action (in reducer) i do object destructuring of that null (sent in LoadAllFailureAction), which producec TypeError, that error is not caught by GlobalErrorHandler (which catches uncaught exceptions). Also, effects stops running.
On the other hand, with exactly the same effects/reducers setup, if i manually do throw Error() in reducer, it does get caught.
Now that's a complete mystery for me.
Any thoughts?
The text was updated successfully, but these errors were encountered:
codefactorydevelopment
changed the title
ngrx effects error handling when reducer throws error on FailuerAction
ngrx effects error handling when reducer throws error within FailureAction
Jul 20, 2017
We have effects defined as:
there is a reducer listening for
LoadAllFailureAction
and does changes to some flags in store.Now, if in handling that action (in reducer) i do object destructuring of that null (sent in
LoadAllFailureAction
), which producecTypeError
, that error is not caught byGlobalErrorHandler
(which catches uncaught exceptions). Also, effects stops running.On the other hand, with exactly the same effects/reducers setup, if i manually do
throw Error()
in reducer, it does get caught.Now that's a complete mystery for me.
Any thoughts?
The text was updated successfully, but these errors were encountered: