Skip to content

Commit 4ef96c2

Browse files
author
Guillaume Chau
committed
fix(ApolloQuery): prefetch prop to false freezing server
1 parent c2ad4d1 commit 4ef96c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mixin.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Globals } from '../lib/utils'
1+
import { Globals, reapply } from '../lib/utils'
22

33
function hasProperty (holder, key) {
44
return typeof holder !== 'undefined' && Object.prototype.hasOwnProperty.call(holder, key)
@@ -91,6 +91,7 @@ function launch () {
9191
if (key.charAt(0) !== '$') {
9292
let options = apollo[key]
9393
const smart = this.$apollo.addSmartQuery(key, options)
94+
options = reapply(options, this)
9495
if (options.prefetch !== false && apollo.$prefetch !== false && !smart.skip) {
9596
this.$_apolloPromises.push(smart.firstRun)
9697
}

0 commit comments

Comments
 (0)