Skip to content

Commit

Permalink
fix: add default inMemoryCacheOptions
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit ac8b2b3)
  • Loading branch information
sodatea committed May 25, 2019
1 parent 1b51835 commit cb6ca38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@vue/cli-ui/src/vue-apollo.js
Expand Up @@ -24,6 +24,7 @@ if (typeof endpoint === 'undefined') {

// Config
const options = {
inMemoryCacheOptions: {},
wsEndpoint: endpoint,
persisting: false,
websocketsOnly: true,
Expand Down

0 comments on commit cb6ca38

Please sign in to comment.