We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.fromLoaderOnly
1 parent d07a405 commit 9a1d2e1Copy full SHA for 9a1d2e1
SDWebImageSwiftUI/Classes/ImageManager.swift
@@ -111,7 +111,11 @@ public final class ImageManager : ObservableObject {
111
func prefetch() {
112
isFirstPrefetch = false
113
var options = self.options
114
- // use `.fromCacheOnly` to query cache only
+ if options.contains(.fromLoaderOnly) {
115
+ // If use indeed ignore cache, don't do prefetch
116
+ return
117
+ }
118
+ // Use `.fromCacheOnly` to query cache only
119
options.insert(.fromCacheOnly)
120
var context = self.context ?? [:]
121
context[.queryCacheType] = SDImageCacheType.memory.rawValue
0 commit comments