fix: add default inMemoryCacheOptions

vue-cli-plugin-apollo now defaults it to null, which won't trigger
default parameter fallback, so this triggers another bug in
apollo-cache-inmemory 1.6.0 787be61441/packages/apollo-cache-inmemory/src/inMemoryCache.ts (L136)
causing "Cannot read property 'freezeResults' of null" error.

(cherry picked from commit ac8b2b3bd1)
This commit is contained in:
Haoqun Jiang
2019-05-25 16:50:10 +08:00
parent 1b51835970
commit cb6ca3870f

View File

@@ -24,6 +24,7 @@ if (typeof endpoint === 'undefined') {
// Config
const options = {
inMemoryCacheOptions: {},
wsEndpoint: endpoint,
persisting: false,
websocketsOnly: true,