Skip to content

Commit

Permalink
make GraphQLQueryWatcher.fetch public so it can be called from a mock…
Browse files Browse the repository at this point in the history
… implementation of ApolloClientProtocol
  • Loading branch information
JimRoepcke committed Dec 19, 2024
1 parent 2d90a52 commit cc12430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apollo-ios/Sources/Apollo/GraphQLQueryWatcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public final class GraphQLQueryWatcher<Query: GraphQLQuery>: Cancellable, Apollo
fetch(cachePolicy: cachePolicy)
}

func fetch(cachePolicy: CachePolicy) {
public func fetch(cachePolicy: CachePolicy) {
$fetching.mutate {
// Cancel anything already in flight before starting a new fetch
$0.cancellable?.cancel()
Expand Down

0 comments on commit cc12430

Please sign in to comment.