From fcc0a389bee0c20eeefd09118946df56ec363d84 Mon Sep 17 00:00:00 2001 From: giovanni_sette_beko Date: Thu, 22 Jan 2026 12:29:26 +0100 Subject: [PATCH] fix: make eager prop work again for Image and skip lazy load if prop isEager --- react/components/LazyImages.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/react/components/LazyImages.tsx b/react/components/LazyImages.tsx index 10f40fef9..134668590 100644 --- a/react/components/LazyImages.tsx +++ b/react/components/LazyImages.tsx @@ -51,7 +51,9 @@ const MaybeLazyImage: FC = ({ }) => { const { lazyLoad, method } = useLazyImagesContext() - if (lazyLoad) { + const isEager = imageProps.loading === 'eager' + + if (lazyLoad && !isEager) { let newImageProps = imageProps switch (method) {