From 304abf7efade31c202eef1de314ceedd95b5f7c8 Mon Sep 17 00:00:00 2001 From: Guillaume Chau Date: Mon, 7 May 2018 19:09:51 +0200 Subject: [PATCH] fix undefined $apolloData --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index be20b65..3252fbb 100644 --- a/src/index.js +++ b/src/index.js @@ -126,13 +126,13 @@ export function install (Vue, options) { }, data () { - return this.$options.apollo ? { + return { '$apolloData': { queries: {}, loading: 0, data: {}, }, - } : {} + } }, } : {},