Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/vue-apollo-option/src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,14 @@ export function installMixin (app, provider) {
if (isServer) {
// Patch render function to cleanup apollo
const render = this.$options.ssrRender
if (!render) return
if (render.__IS_VUE_APOLLO_WRAPPED) return
this.$options.ssrRender = (h) => {
const result = render.call(this, h)
destroy.call(this)
return result
}
this.$options.ssrRender.__IS_VUE_APOLLO_WRAPPED = true
}
},

Expand Down