Skip to content

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

@pip8786

Description

@pip8786

<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}
/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions