mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 19:58:59 +00:00
fix(blank pages): removing apollo caching (#3008)
This commit is contained in:
parent
93069e5cec
commit
f4a6d18c12
@ -48,62 +48,11 @@ const errorLink = onError(({ networkError }) => {
|
||||
const client = new ApolloClient({
|
||||
connectToDevTools: true,
|
||||
link: errorLink.concat(httpLink),
|
||||
cache: new InMemoryCache({
|
||||
typePolicies: {
|
||||
Query: {
|
||||
fields: {
|
||||
dataset: {
|
||||
merge(existing, incoming) {
|
||||
return { ...existing, ...incoming };
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
Dataset: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
CorpUser: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
Dashboard: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
Chart: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
DataFlow: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
DataJob: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
MLFeatureTable: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
MLModel: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
MLModelGroup: {
|
||||
keyFields: ['urn'],
|
||||
},
|
||||
},
|
||||
possibleTypes: {
|
||||
EntityWithRelationships: [
|
||||
'Dataset',
|
||||
'Chart',
|
||||
'Dashboard',
|
||||
'DataJob',
|
||||
'MLFeature',
|
||||
'MLPrimaryKey',
|
||||
'MLModel',
|
||||
'MLModelGroup',
|
||||
],
|
||||
},
|
||||
}),
|
||||
cache: new InMemoryCache(),
|
||||
credentials: 'include',
|
||||
defaultOptions: {
|
||||
watchQuery: {
|
||||
fetchPolicy: 'cache-and-network',
|
||||
fetchPolicy: 'no-cache',
|
||||
nextFetchPolicy: 'cache-first',
|
||||
},
|
||||
query: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user