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 fb6422f commit ce9f991Copy full SHA for ce9f991
index.js
@@ -135,7 +135,9 @@ export default class CachedImage extends Component {
135
}, (error) => {
136
// cache failed use original source
137
if (this._mounted) {
138
- this.setState({source: this.props.source});
+ setTimeout(() => {
139
+ this.setState({source: this.props.source});
140
+ }, 0);
141
}
142
this._downloading = false;
143
});
0 commit comments