diff --git a/CHANGELOG.md b/CHANGELOG.md index 61dc7dd5..4ff29ca9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- Make eager prop work again for Image and skip lazy load if prop isEager + ## [8.136.1] - 2025-03-28 ### Fixed diff --git a/react/components/LazyImages.tsx b/react/components/LazyImages.tsx index 10f40fef..13466859 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) {