react-diode
Advanced tools
Comparing version 0.5.23 to 0.5.24
@@ -1166,7 +1166,9 @@ 'use strict'; | ||
return new Promise(function (resolve) { | ||
return _this2.props.afterFetchCallback(resolve, cache.getContents()); | ||
if (typeof _this2.props.afterFetchCallback === "function") { | ||
_this2.props.afterFetchCallback(resolve, cache.getContents()); | ||
} else { | ||
resolve(); | ||
} | ||
}); | ||
}).then(function () { | ||
if (typeof _this5.props.afterFetchCallback === "function") ; | ||
_this5.setState({ | ||
@@ -1173,0 +1175,0 @@ isLoading: false |
{ | ||
"name": "react-diode", | ||
"version": "0.5.23", | ||
"version": "0.5.24", | ||
"description": "Endpoint agnostic, unidirectional data fetching for React applications", | ||
@@ -5,0 +5,0 @@ "source": "src/DiodePublic.js", |
44669
1128