fix(@vue/apollo-option): ssr cleanup function fails to run (#1424) (#1425)

Co-authored-by: Szabolcs Csizmadia <Szabolcs.Csizmadia-ext@querplex.biz>
This commit is contained in:
Csizmadia Szabolcs
2023-02-03 14:24:00 +01:00
committed by GitHub
parent 9302d4d4a5
commit 8dfe93b826
+2 -2
View File
@@ -114,8 +114,8 @@ export function installMixin (app, provider) {
this.$apollo = new DollarApollo(this, provider)
if (isServer) {
// Patch render function to cleanup apollo
const render = this.$options.render
this.$options.render = (h) => {
const render = this.$options.ssrRender
this.$options.ssrRender = (h) => {
const result = render.call(this, h)
destroy.call(this)
return result