Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect if image is in cache #293

Open
cmmartin opened this issue Sep 18, 2018 · 6 comments
Open

Detect if image is in cache #293

cmmartin opened this issue Sep 18, 2018 · 6 comments

Comments

@cmmartin
Copy link

Is there any way to detect if an image is in the cache?

My use case is that I want to do a progressive image loading effect when the image is not cached (fade in on load). However, I don't want the fade when the image is cached, because it is better to just show the image immediately in that case

@chadmg
Copy link

chadmg commented Oct 15, 2018

+1 I'm currently looking for this same solution

@DavoCg
Copy link

DavoCg commented Oct 18, 2018

+1 I was here for the same use case !

@n1ru4l
Copy link
Contributor

n1ru4l commented Oct 29, 2018

This will be possible once #228 is implemented

@compojoom
Copy link

Please check #351

@nathantqn
Copy link

+1 for this, I'm in the same situation :(

@maxowy
Copy link

maxowy commented Apr 10, 2020

If you want to show up cached images immediately, and show loader on newly images, you can use a temporary hack until it will be improved:

InitialState: isLoading: false

onProgress //set isLoading to true
onLoadEnd //set isLoading to false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants