AsyncImage icon indicating copy to clipboard operation
AsyncImage copied to clipboard

Code attempts to load same image multiple times when same image occurs more than once in a view

Open StephenClarkApps opened this issue 2 years ago • 1 comments

It seems the intention of code like

guard !isLoading else { return }

but it also seems that there can be multiple instances and no tracking of a current loading state against an URL inside a single cache instance

is to prevent image loading twice or whatever, however, if we have a view that uses the same image several times, opening Charles shows the images is attempting to be loaded more than once.

StephenClarkApps avatar Mar 08 '22 20:03 StephenClarkApps

I have the same problem

easydev991 avatar Jan 06 '23 14:01 easydev991