Skip to content

Commit 5b65bd4

Browse files
committed
[#79] 이건 그냥 코드 순서만 변경 (404관련 아님...)
이건 그냥 코드 순서만 변경
1 parent e3faa1e commit 5b65bd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/use-image-loader.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ function useImageListLodeChecker(imageList = []) {
4848
}
4949

5050
const img = new Image();
51-
img.src = backgroundImageURL;
5251
img.onload = () => {
5352
setImageLoadStates((p) => ({ ...p, [id]: true }));
5453
};
5554
img.onerror = () => {
5655
setImageLoadStates((p) => ({ ...p, [id]: false }));
5756
};
57+
img.src = backgroundImageURL;
5858

5959
return prev;
6060
});

0 commit comments

Comments
 (0)