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

createSkeletonElement for images switch onLoad

Open joshferrell opened this issue 6 years ago • 0 comments

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.

joshferrell avatar May 18 '18 23:05 joshferrell