react-skeletor
react-skeletor copied to clipboard
createSkeletonElement for images switch onLoad
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.