Skip to content

Commit

Permalink
Use the provided callback queue instead of the store's default. (#1904)
Browse files Browse the repository at this point in the history
  • Loading branch information
iresslerCMM authored Aug 11, 2021
1 parent e10c197 commit 3225406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Apollo/ApolloClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ extension ApolloClient: ApolloClientProtocol {

public func clearCache(callbackQueue: DispatchQueue = .main,
completion: ((Result<Void, Error>) -> Void)? = nil) {
self.store.clearCache(completion: completion)
self.store.clearCache(callbackQueue: callbackQueue, completion: completion)
}

@discardableResult public func fetch<Query: GraphQLQuery>(query: Query,
Expand Down

0 comments on commit 3225406

Please sign in to comment.