imagekit-react icon indicating copy to clipboard operation
imagekit-react copied to clipboard

Image doesn't load if lqip active is set to false.

Open pip8786 opened this issue 2 years ago • 0 comments

<IKImage lqip={{ active: true }} {...other} /> works fine but if you do <IKImage lqip={{ active: false }} {...other} /> the image never loads. The workaround is to make an object that is undefined:

let lqip: LQIP | undefined = { active: true };
if (media.type === MediaType.Video) {
  path += "/ik-thumbnail.jpg";
  lqip = undefined;
} 
return (
<IKImage
  lqip={lqip}
  {...other}
/>

pip8786 avatar May 20 '22 21:05 pip8786