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 e2a7427 commit 6f6bb05Copy full SHA for 6f6bb05
src/alt/store/StoreMixin.js
@@ -65,9 +65,10 @@ const StoreMixin = {
65
loadCounter += 1
66
/* istanbul ignore else */
67
if (spec.loading) spec.loading(intercept(null, spec.loading, args))
68
- return spec.remote(state, ...args)
69
- .catch(makeActionHandler(spec.error, 1))
70
- .then(makeActionHandler(spec.success))
+ return spec.remote(state, ...args).then(
+ makeActionHandler(spec.success),
+ makeActionHandler(spec.error, 1)
71
+ )
72
} else {
73
// otherwise emit the change now
74
this.emitChange()
0 commit comments