Skip to content

Commit 63d5fc8

Browse files
authored
run unsubscribe when ssr prefetch end (#109)
1 parent 638e555 commit 63d5fc8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/mixin.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ export default {
4747
})
4848
}
4949
},
50-
50+
serverPrefetch () {
51+
if (this._subscription) {
52+
this._subscription.unsubscribe()
53+
}
54+
},
5155
beforeDestroy () {
5256
if (this._subscription) {
5357
this._subscription.unsubscribe()

0 commit comments

Comments
 (0)