We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68bb93 commit 40b61d2Copy full SHA for 40b61d2
src/components/LazyLoadImage.jsx
@@ -34,7 +34,7 @@ class LazyLoadImage extends React.Component {
34
}
35
36
shouldComponentUpdate(nextProps, nextState) {
37
- if (this.state.visible !== nextState.visible) {
+ if (!this.state.visible) {
38
return true;
39
40
0 commit comments