Skip to content

Commit c672e56

Browse files
committed
💡 add todo
1 parent 6b0bec5 commit c672e56

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/components/StyledImage/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const StyledImage = ({ src, srcSet, disableLazy, alt, className, ...rest }) => {
7171
}, [src]);
7272
// this is odd but it allows us to quickly flush the src when an image src is swapped but react is able to use
7373
// the same DOM element. The other option would be to use keys but then react can't be as efficient.
74+
// todo maybe wrap in a timeout to make sure it doesn't get batched
7475
setIsLimbo(false);
7576

7677
// Show low resolution image

0 commit comments

Comments
 (0)