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 f0ab708 commit fceb40cCopy full SHA for fceb40c
packages/vue-apollo-option/src/mixin.js
@@ -115,11 +115,14 @@ export function installMixin (app, provider) {
115
if (isServer) {
116
// Patch render function to cleanup apollo
117
const render = this.$options.ssrRender
118
+ if (!render) return
119
+ if (render.__IS_VUE_APOLLO_WRAPPED) return
120
this.$options.ssrRender = (h) => {
121
const result = render.call(this, h)
122
destroy.call(this)
123
return result
124
}
125
+ this.$options.ssrRender.__IS_VUE_APOLLO_WRAPPED = true
126
127
},
128
0 commit comments