Skip to content

Commit

Permalink
fix(@vue/apollo-option): ssr cleanup function fails to run (#1424) (#…
Browse files Browse the repository at this point in the history
…1425)

Co-authored-by: Szabolcs Csizmadia <Szabolcs.Csizmadia-ext@querplex.biz>
  • Loading branch information
Csszabi98 and Szabolcs Csizmadia committed Feb 3, 2023
1 parent 9302d4d commit 8dfe93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vue-apollo-option/src/mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dfe93b

Please sign in to comment.