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 1e553ea commit 2307449Copy full SHA for 2307449
src/index.tsx
@@ -24,6 +24,7 @@ export class ProgressiveImage extends React.Component<ProgressiveImageProps, Pro
24
componentWillMount() {
25
const {src, preview} = this.props;
26
const initialBlur = this.props.initialBlur as number;
27
+ this.setState({ src: "", blur: initialBlur });
28
this.fetch(preview)
29
.then(previewDataURI => this.setState({ src: previewDataURI, blur: initialBlur }))
30
.then(() => this.fetch(src))
0 commit comments