Is there a way when using the `CacheAndNetwork` fe...
# apollo-kotlin
c
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
you should have
response.cacheInfo.isCacheHit
c
perfect. exactly what I needed. thanks!
m
(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
Yeah I did post a question, but then removed it because I realized the answer to my own question 🙂
m
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
will do. thanks for your help