Skip to content

Commit ac8b2b3

Browse files
committed
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 https://github.com/apollographql/apollo-client/blob/787be614419c39db1dc79ac132a18730c8d7af1b/packages/apollo-cache-inmemory/src/inMemoryCache.ts#L136 causing "Cannot read property 'freezeResults' of null" error.
1 parent b6984d9 commit ac8b2b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@vue/cli-ui/src/vue-apollo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if (typeof endpoint === 'undefined') {
2424

2525
// Config
2626
const options = {
27+
inMemoryCacheOptions: {},
2728
wsEndpoint: endpoint,
2829
persisting: false,
2930
websocketsOnly: true,

0 commit comments

Comments
 (0)