Skip to content

Commit

Permalink
Set isCacheable to false when cacheImage failed
Browse files Browse the repository at this point in the history
  • Loading branch information
kfiroo committed Apr 20, 2017
1 parent 6e892a9 commit 08a0427
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CachedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ const CachedImage = React.createClass({
})
.catch(err => {
this.safeSetState({
cachedImagePath: null
cachedImagePath: null,
isCacheable: false
});
});
this.safeSetState({
Expand Down

0 comments on commit 08a0427

Please sign in to comment.