File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const ImageBlurPreloader: FC<Props> = ({
38
38
prevMainAttributes . srcSet === mainAttributes . srcSet
39
39
) ;
40
40
41
- const isDelayedBlur = useDelayed ( isMainImageChanged , BLUR_IMAGE_DELAY ) ;
41
+ const _isDelayedBlur = useDelayed ( isMainImageChanged , BLUR_IMAGE_DELAY ) ;
42
42
43
43
// reset isLoading on main image change
44
44
useEffect ( ( ) => {
@@ -95,9 +95,7 @@ const ImageBlurPreloader: FC<Props> = ({
95
95
// _!isLoadingBlur - don't hide main image until next blur image is loaded
96
96
// isMainImageChanged - don't show main image while it's transitioning - solves flickering
97
97
// isDelayedBlur - fixed blur delay
98
- ! isLoadingBlur && ( isLoadingMain || isMainImageChanged || isDelayedBlur )
99
- ? 'opacity-0'
100
- : 'opacity-100' ,
98
+ ! isLoadingBlur && ( isLoadingMain || isMainImageChanged ) ? 'opacity-0' : 'opacity-100' ,
101
99
className
102
100
) }
103
101
/>
You can’t perform that action at this time.
0 commit comments