https://kotlinlang.org logo
#apollo-kotlin
Title
# apollo-kotlin
c

Cody Roueche

03/02/2023, 4:11 PM
Is there a way when using the
CacheAndNetwork
fetch policy to know if the data coming through the flow is from cache or if it's from the network?
m

mbonnin

03/02/2023, 4:13 PM
you should have
response.cacheInfo.isCacheHit
c

Cody Roueche

03/02/2023, 4:15 PM
perfect. exactly what I needed. thanks!
m

mbonnin

03/02/2023, 4:43 PM
(did you have a question about network errors? sorry I missed it) Just in case: in the current state they will throw. But we're looking at streamlining our error handling to make this easier to handle. Details are there: if you have some time, feedbacks are appreciated!
c

Cody Roueche

03/02/2023, 4:55 PM
Yeah I did post a question, but then removed it because I realized the answer to my own question 🙂
m

mbonnin

03/02/2023, 4:56 PM
I'm curious your feedback as you go down these APIs. This has been a confusing area for some time so feel free to report any difficulty!
c

Cody Roueche

03/02/2023, 5:37 PM
will do. thanks for your help
5 Views