Skip to content

Commit 6af46dc

Browse files
Update cache write intercetptor to proceed rather than return value so additional interceptors can be chained to it if desired
1 parent 6ab01c6 commit 6af46dc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/Apollo/LegacyCacheWriteInterceptor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public class LegacyCacheWriteInterceptor: ApolloInterceptor {
6363
}
6464
}
6565

66-
chain.returnValueAsync(for: request,
67-
value: result,
68-
completion: completion)
66+
chain.proceedAsync(request: request,
67+
response: createdResponse,
68+
completion: completion)
6969
}.catch { error in
7070
chain.handleErrorAsync(error,
7171
request: request,

0 commit comments

Comments
 (0)