parent
d4900b76d0
commit
4980a77efb
|
@ -11,7 +11,9 @@
|
||||||
"mode": "auto",
|
"mode": "auto",
|
||||||
"program": "${workspaceRoot}/server.go",
|
"program": "${workspaceRoot}/server.go",
|
||||||
"cwd": "${workspaceRoot}",
|
"cwd": "${workspaceRoot}",
|
||||||
"env": {},
|
"env": {
|
||||||
|
"PATH": "${env:PATH}:/Applications/darktable.app/Contents/MacOS/"
|
||||||
|
},
|
||||||
"args": []
|
"args": []
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -104,10 +104,20 @@ const linkError = onError(({ graphQLErrors, networkError }) => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const memoryCache = new InMemoryCache({
|
||||||
|
typePolicies: {
|
||||||
|
// There only exists one global instance of SiteInfo,
|
||||||
|
// therefore it can always be merged
|
||||||
|
SiteInfo: {
|
||||||
|
merge: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
const client = new ApolloClient({
|
const client = new ApolloClient({
|
||||||
// link: ApolloLink.from([linkError, authLink.concat(link)]),
|
// link: ApolloLink.from([linkError, authLink.concat(link)]),
|
||||||
link: ApolloLink.from([linkError, link]),
|
link: ApolloLink.from([linkError, link]),
|
||||||
cache: new InMemoryCache(),
|
cache: memoryCache,
|
||||||
})
|
})
|
||||||
|
|
||||||
export default client
|
export default client
|
||||||
|
|
Loading…
Reference in New Issue