Skip to content

createSkeletonElement for images switch onLoad #16

@joshferrell

Description

@joshferrell

Is it possible to make it so that when you create a skeleton element for an image tag, that it waits for the onLoad event to occur before switching? Or for there to be a manual keep on skeleton state as a prop?

Basically I'd like to be able to have my component wait for the image source to be passed down from a fetch, then wait until the onLoad event has occurred and then switch to show the image. Otherwise, there is a flash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions