Does `watch` also perform a network request if it’...
# apollo-kotlin
n
Does
watch
also perform a network request if it’s not already in the cache?
Copy code
apolloClient.watch(BookWithAuthorName()).collect { response ->
      // This will be called every time the book or author changes
  }
m
It depends your initial fetchPolicy
By default it will but you can change it to
CacheOnly
if you don't want a network request
n
sweet, thanks!
m
Also heads up that this API changes with beta02 (promised it's one of the last breaking changes)
I think this is for the greater good. I quite like the new API but let us know what you think!
n
I saw! That looks much better.