cache-only
fetchPolicy results in network request after deleting cached data
#11997
Labels
cache-only
fetchPolicy results in network request after deleting cached data
#11997
Issue Description
When using the
cache-only
fetch policy withuseQuery
, if data is cleared from the cache in aclient.refetchQueries
operation, the query will make a network request, even though that should never happen with acache-only
fetch policy.Link to Reproduction
https://codesandbox.io/p/sandbox/apollo-cache-policy-issue-dj2w8s
Reproduction Steps
NetworkQuery
request is sent, thecache-only
query does correctly use only the cacheCacheOnlyQuery
network request is made.@apollo/client
version3.11.4
The text was updated successfully, but these errors were encountered: