Skip to content

Commit 3659c0f

Browse files
authored
Fix ApolloClient.interceptors (#6770)
1 parent 0aa62a1 commit 3659c0f

File tree

1 file changed

+2
-1
lines changed
  • libraries/apollo-runtime/src/commonMain/kotlin/com/apollographql/apollo

1 file changed

+2
-1
lines changed

libraries/apollo-runtime/src/commonMain/kotlin/com/apollographql/apollo/ApolloClient.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,8 @@ private constructor(
340340
internal val _beforeRetryOnErrorInterceptors: MutableList<ApolloInterceptor> = mutableListOf()
341341
internal val _beforeNetworkInterceptors: MutableList<ApolloInterceptor> = mutableListOf()
342342

343-
val interceptors: List<ApolloInterceptor> = _beforeCacheInterceptors + _beforeAutoPersistedQueriesInterceptors + _beforeRetryOnErrorInterceptors + _beforeNetworkInterceptors
343+
val interceptors: List<ApolloInterceptor>
344+
get() = _beforeCacheInterceptors + _beforeAutoPersistedQueriesInterceptors + _beforeRetryOnErrorInterceptors + _beforeNetworkInterceptors
344345

345346
private val _httpInterceptors: MutableList<HttpInterceptor> = mutableListOf()
346347
val httpInterceptors: List<HttpInterceptor> = _httpInterceptors

0 commit comments

Comments
 (0)