From 08a0427e467da4dea2c7b28569d1708b65abf4cc Mon Sep 17 00:00:00 2001 From: kfiroo Date: Thu, 20 Apr 2017 20:16:41 +0300 Subject: [PATCH] Set isCacheable to false when cacheImage failed --- CachedImage.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CachedImage.js b/CachedImage.js index 59e75d1..ab671c9 100644 --- a/CachedImage.js +++ b/CachedImage.js @@ -128,7 +128,8 @@ const CachedImage = React.createClass({ }) .catch(err => { this.safeSetState({ - cachedImagePath: null + cachedImagePath: null, + isCacheable: false }); }); this.safeSetState({