Skip to content

Commit d3886b9

Browse files
ydfzgyjAkryum
authored andcommitted
fix: ssr blocking when skip is true (#511)
1 parent 1824dce commit d3886b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function launch () {
9191
if (key.charAt(0) !== '$') {
9292
let options = apollo[key]
9393
const smart = this.$apollo.addSmartQuery(key, options)
94-
if (options.prefetch !== false && apollo.$prefetch !== false) {
94+
if (options.prefetch !== false && apollo.$prefetch !== false && !smart.skip) {
9595
this.$_apolloPromises.push(smart.firstRun)
9696
}
9797
}

0 commit comments

Comments
 (0)