You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.
"Query deduplication can help reduce the number of queries that are sent over the wire. It is turned on by default, but can be turned off by passing queryDeduplication: false to the context on each requests or using the defaultOptions key on Apollo Client setup. If turned on, query deduplication happens before the query hits the network layer."
new ApolloClient({
defaultOptions: {
queryDeduplication: false,
}
})
has no effect
what one does is:
new ApolloClient({
queryDeduplication: false,
})
moreover should not
import { graphql } from 'react-apollo'
graphql(
Query,
{
options: () => ({
context: {
// this (SHOULD) prevent the query being deduped
// which means that requerying on reconnection works
queryDeduplication: false,
},
fetchPolicy:'network-only',
})
}
)
work for individual queries?
The text was updated successfully, but these errors were encountered:
I'm having the same issue. I don't want to turn off queryDeduplication for all my requests but only for one. I tried passing queryDeduplication: false in the context instead of inside the client options but it doesn't work.
Doc says:
"Query deduplication can help reduce the number of queries that are sent over the wire. It is turned on by default, but can be turned off by passing queryDeduplication: false to the context on each requests or using the defaultOptions key on Apollo Client setup. If turned on, query deduplication happens before the query hits the network layer."
https://www.apollographql.com/docs/react/basics/network-layer.html#query-deduplication
however
has no effect
what one does is:
moreover should not
work for individual queries?
The text was updated successfully, but these errors were encountered: