Skip to content

Commit 7c9517c

Browse files
committed
chore: Fetching image after page load on clothing view page might be preferable
1 parent be807d0 commit 7c9517c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/pages/clothing/view.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Created Date: 2025-09-08 15:39:55
66
* Author: 3urobeat
77
*
8-
* Last Modified: 2026-04-29 18:33:15
8+
* Last Modified: 2026-04-30 09:12:47
99
* Modified By: 3urobeat
1010
*
1111
* Copyright (c) 2025 - 2026 3urobeat <https://github.com/3urobeat>
@@ -185,7 +185,11 @@
185185
if (clothingId != "new") {
186186
thisClothing.value = (await getClothingFromServer(clothingId)).value.document!; // TODO: Does ref break?
187187
188-
thisClothingImgBlob.value = (await getSSRImageFromServer(thisClothing.value.imgPath, 512))?.value.document?.imgBlob || ""; // TODO: Does ref break?
188+
// I think it actually provides a better user experience fetching the image afterwards here
189+
// thisClothingImgBlob.value = (await getSSRImageFromServer(thisClothing.value.imgPath, 512))?.value.document?.imgBlob || "";
190+
onMounted(async () => {
191+
thisClothingImgBlob.value = (await getImageFromServer(thisClothing.value.imgPath, 512))?.imgBlob || ""; // TODO: Does ref break?
192+
});
189193
}
190194
191195

0 commit comments

Comments
 (0)