Skip to content

Commit 8dfe93b

Browse files
Csszabi98Szabolcs Csizmadia
andauthored
fix(@vue/apollo-option): ssr cleanup function fails to run (#1424) (#1425)
Co-authored-by: Szabolcs Csizmadia <[email protected]>
1 parent 9302d4d commit 8dfe93b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/vue-apollo-option/src/mixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ export function installMixin (app, provider) {
114114
this.$apollo = new DollarApollo(this, provider)
115115
if (isServer) {
116116
// Patch render function to cleanup apollo
117-
const render = this.$options.render
118-
this.$options.render = (h) => {
117+
const render = this.$options.ssrRender
118+
this.$options.ssrRender = (h) => {
119119
const result = render.call(this, h)
120120
destroy.call(this)
121121
return result

0 commit comments

Comments
 (0)