Skip to content

Commit 9a6d2ff

Browse files
authored
Merge pull request #19 from wcandillon/wcandillon-patch-12
fix(component): Bug fix
2 parents 1e553ea + 2307449 commit 9a6d2ff

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class ProgressiveImage extends React.Component<ProgressiveImageProps, Pro
2424
componentWillMount() {
2525
const {src, preview} = this.props;
2626
const initialBlur = this.props.initialBlur as number;
27+
this.setState({ src: "", blur: initialBlur });
2728
this.fetch(preview)
2829
.then(previewDataURI => this.setState({ src: previewDataURI, blur: initialBlur }))
2930
.then(() => this.fetch(src))

0 commit comments

Comments
 (0)