Frank Sullivan
02/14/2024, 10:21 PMSets the FetchPolicy used when watching queries and a cache change has been publishedI just want to see if I understand the behavior. So when the cached data changes, the ApolloStore is going to publish a list of the changed keys. When you watch a Query, and it sees the relevant keys have been changed, it has to make a decision about how to emit the updated data. The default (CacheOnly) will simply try to read the query from the cache. But if we changed it to (say) NetworkOnly, then it would make a network call every time relevant keys changed, and so on with the other Fetch Policies? And normally any errors would be eaten up but I can have them thrown instead by setting
refetchThrows=true
?mbonnin
02/14/2024, 10:52 PMFrank Sullivan
02/14/2024, 10:52 PM