Changelog
The changes in each lazymage release.
1.0.0
The first release of lazymage. lazymage is a TypeScript rewrite of react-lazy-load-image-component for React 19. It keeps the same API. To migrate, change the import. See the migration guide.
New features
- Add the
useLazyLoadanduseImageStatushooks. - Add the
fallbackSrcprop. It shows one fallback image whensrcfails to load. - Add the
onReadyprop. It runs when the image is loaded and decoded. - Add the
preloadprop. It fetches the image early withreact-dompreload(). - Add the
rootandscrollMarginprops for scroll containers. - Add the
data-stateattribute on the image and its wrapper.
Changes
- Turn off the effect transitions when the user prefers reduced motion.
- Remove all runtime dependencies.
reactandreact-dom19 are peer dependencies.