sambernard / react-preload

Component to preload images before showing content
MIT License
148 stars 48 forks source link

Feature request: bool prop to delay onSuccess/onError #1

Closed claus closed 9 years ago

claus commented 9 years ago

It would be nice if we had a prop that delays calls to onSuccess/onError (and delays switching out content) until it is set to true (or something like that).

I have a use case where i have to do some other preloading tasks in addition to preloading images, where it would be nice if the preloader component would stay mounted even when images have already been loaded, until i tell it that it is ok to switch. Does that make sense? :)