In my React application I am using storybook and for this I have integrated chromatic where all my images are published and stored.
But for specific stories my images are missing when build pushed to Chromatic (see screenshot below for missing image):
You can see above missing images in chromatic build.
I can disabled lazy=loading in my specific component: My component code below:
<div className="flex-grow px-6 place-self-center">
<div className="h-60 ">
<img
src={imageUrl}
className="px-6 pt-4 pb-10 my-0"
height={imageHeight}
loading="lazy" // here I can remove this line
/>
</div>
But I want to disabled lazy loading only for storybook/stories or better for Chromatic only.