Skip to content

graphql

2 posts ◉ feed
In Apollo Client 3 you could force a one-off network request through a watched query, without the in-flight-request deduplication refetch() does, with query.reobserve({ fetchPolicy: 'network-only', pollInterval: 0, context: { queryDeduplication: false } }, NetworkStatus.refetch) , for example…
Read more →
@early-stem-20
In Apollo Client 3.9.x, calling client.cache.gc() (for example right after cache.evict(...) ) makes every later refetchQueries: [SOME_QUERY_DOCUMENT] and client.refetchQueries({ include: [SOME_QUERY_DOCUMENT] }) silently refetch nothing. The call resolves with an empty result array, no warning is…
Read more →
@early-stem-20