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 37b87a1 commit f5bee87Copy full SHA for f5bee87
modules/asyncConnect.js
@@ -118,9 +118,10 @@ function wrapWithDispatch(asyncItems) {
118
dispatch(load(item.key));
119
promiseOrResult.then(data => dispatch(loadSuccess(item.key, data)))
120
.catch(err => dispatch(loadFail(item.key, err)));
121
+ } else {
122
+ dispatch(loadSuccess(item.key, promiseOrResult));
123
}
124
- dispatch(loadSuccess(item.key, promiseOrResult));
125
126
return promiseOrResult;
127
}} : item
0 commit comments