We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23d971c commit c5a1044Copy full SHA for c5a1044
src/app/redux/middleware/fetchMiddleware.js
@@ -111,7 +111,12 @@ const fetchMiddleware = store => next => action => {
111
...options
112
})
113
.then(data => store.dispatch({type: success, payload: data.data}))
114
- .catch(err => store.dispatch({type: fail, error: err}));
+ .catch(
115
+ err => {
116
+ store.dispatch({type: fail, error: err});
117
+ return Promise.reject(err);
118
+ }
119
+ );
120
}
121
return next(action);
122
};
0 commit comments