You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: Sources/Apollo/ApolloClient.swift
+15-15
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,12 @@ public enum CachePolicy: Hashable {
25
25
///
26
26
/// - Parameters:
27
27
/// - result: The result of a performed operation. Will have a `GraphQLResult` with any parsed data and any GraphQL errors on `success`, and an `Error` on `failure`.
/// The `ApolloClient` class implements the core API for Apollo by conforming to `ApolloClientProtocol`.
31
31
publicclassApolloClient{
32
32
33
-
letnetworkTransport:NetworkTransport
33
+
letnetworkTransport:anyNetworkTransport
34
34
35
35
publicletstore:ApolloStore
36
36
@@ -50,7 +50,7 @@ public class ApolloClient {
50
50
/// - Parameters:
51
51
/// - networkTransport: A network transport used to send operations to a server.
52
52
/// - store: A store used as a local cache. Note that if the `NetworkTransport` or any of its dependencies takes a store, you should make sure the same store is passed here so that it can be cleared properly.
/// Watches a query by first fetching an initial result from the server or from the local cache, depending on the current contents of the cache and the specified cache policy. After the initial fetch, the returned query watcher object will get notified whenever any of the data the query result depends on changes in the local cache, and calls the result handler again with the new result.
38
38
///
@@ -45,7 +45,7 @@ public protocol ApolloClientProtocol: AnyObject {
45
45
/// - Returns: A query watcher object that can be used to control the watching behavior.
Copy file name to clipboardexpand all lines: Sources/Apollo/ApolloErrorInterceptor.swift
+5-5
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ public protocol ApolloErrorInterceptor {
14
14
/// - response: [optional] The response, if one was received
15
15
/// - completion: The completion closure to fire when the operation has completed. Note that if you call `retry` on the chain, you will not want to call the completion block in this method.
0 commit comments