We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f262459 commit 640ba3eCopy full SHA for 640ba3e
lib/templates/plugin.js
@@ -54,7 +54,7 @@ export default (ctx, inject) => {
54
: new InMemoryCache(<%= key %>ClientConfig.inMemoryCacheOptions ? <%= key %>ClientConfig.inMemoryCacheOptions: undefined)
55
56
if (!process.server) {
57
- <%= key %>Cache.restore(window.__NUXT__ ? window.__NUXT__.apollo.<%= key === 'default' ? 'defaultClient' : key %> : null)
+ <%= key %>Cache.restore(window.__NUXT__ && window.__NUXT__.apollo ? window.__NUXT__.apollo.<%= key === 'default' ? 'defaultClient' : key %> : null)
58
}
59
60
if (!<%= key %>ClientConfig.getAuth) {
0 commit comments