Skip to content
10 changes: 8 additions & 2 deletions Sources/Apollo/GraphQLQueryWatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,15 @@ public final class GraphQLQueryWatcher<Query: GraphQLQuery>: Cancellable, Apollo
private extension CachePolicy {
var alwaysIncludesServerFetch: Bool {
switch self {
case .fetchIgnoringCacheCompletely, .fetchIgnoringCacheData, .returnCacheDataAndFetch:
case .fetchIgnoringCacheCompletely:
return true
case .returnCacheDataDontFetch, .returnCacheDataElseFetch:
case .fetchIgnoringCacheData:
return true
case .returnCacheDataAndFetch:
return true
case .returnCacheDataDontFetch:
return false
case .returnCacheDataElseFetch:
Comment thread
designatednerd marked this conversation as resolved.
Outdated
return false
}
}
Expand Down