Skip to content

Commit 15f5c20

Browse files
author
Guillaume Chau
committed
chore: v3.0.0-beta.9
1 parent 80c8fe0 commit 15f5c20

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

dist/vue-apollo.esm.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,11 +2861,11 @@ var SmartQuery = function (_SmartApollo) {
28612861
// No result
28622862
} else if (!this.options.manual) {
28632863
if (typeof this.options.update === 'function') {
2864-
this.vm.$set(this.vm.$apolloData.data, this.key, this.options.update.call(this.vm, data));
2864+
this.vm.$set(this.vm.$data.$apolloData.data, this.key, this.options.update.call(this.vm, data));
28652865
} else if (data[this.key] === undefined) {
28662866
console.error('Missing ' + this.key + ' attribute on result', data);
28672867
} else {
2868-
this.vm.$set(this.vm.$apolloData.data, this.key, data[this.key]);
2868+
this.vm.$set(this.vm.$data.$apolloData.data, this.key, data[this.key]);
28692869
}
28702870
} else if (!hasResultCallback) {
28712871
console.error(this.key + ' query must have a \'result\' hook in manual mode');
@@ -3921,13 +3921,15 @@ var launch = function launch() {
39213921

39223922
var _loop = function _loop(key) {
39233923
if (key.charAt(0) !== '$') {
3924-
Object.defineProperty(_this, key, {
3925-
get: function get$$1() {
3926-
return _this.$apolloData.data[key];
3927-
},
3928-
enumerable: true,
3929-
configurable: true
3930-
});
3924+
if (!_this.hasOwnProperty(key) && !_this.$props.hasOwnProperty(key) && !_this.$data.hasOwnProperty(key)) {
3925+
Object.defineProperty(_this, key, {
3926+
get: function get$$1() {
3927+
return _this.$data.$apolloData.data[key];
3928+
},
3929+
enumerable: true,
3930+
configurable: true
3931+
});
3932+
}
39313933
_this.$apollo.addSmartQuery(key, apollo[key]);
39323934
}
39333935
};
@@ -4044,7 +4046,7 @@ function install(Vue, options) {
40444046
ApolloProvider.install = install;
40454047

40464048
// eslint-disable-next-line no-undef
4047-
ApolloProvider.version = "3.0.0-beta.8";
4049+
ApolloProvider.version = "3.0.0-beta.9";
40484050

40494051
// Apollo provider
40504052
var ApolloProvider$1 = ApolloProvider;

dist/vue-apollo.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue-apollo.umd.js

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2867,11 +2867,11 @@ var SmartQuery = function (_SmartApollo) {
28672867
// No result
28682868
} else if (!this.options.manual) {
28692869
if (typeof this.options.update === 'function') {
2870-
this.vm.$set(this.vm.$apolloData.data, this.key, this.options.update.call(this.vm, data));
2870+
this.vm.$set(this.vm.$data.$apolloData.data, this.key, this.options.update.call(this.vm, data));
28712871
} else if (data[this.key] === undefined) {
28722872
console.error('Missing ' + this.key + ' attribute on result', data);
28732873
} else {
2874-
this.vm.$set(this.vm.$apolloData.data, this.key, data[this.key]);
2874+
this.vm.$set(this.vm.$data.$apolloData.data, this.key, data[this.key]);
28752875
}
28762876
} else if (!hasResultCallback) {
28772877
console.error(this.key + ' query must have a \'result\' hook in manual mode');
@@ -3927,13 +3927,15 @@ var launch = function launch() {
39273927

39283928
var _loop = function _loop(key) {
39293929
if (key.charAt(0) !== '$') {
3930-
Object.defineProperty(_this, key, {
3931-
get: function get$$1() {
3932-
return _this.$apolloData.data[key];
3933-
},
3934-
enumerable: true,
3935-
configurable: true
3936-
});
3930+
if (!_this.hasOwnProperty(key) && !_this.$props.hasOwnProperty(key) && !_this.$data.hasOwnProperty(key)) {
3931+
Object.defineProperty(_this, key, {
3932+
get: function get$$1() {
3933+
return _this.$data.$apolloData.data[key];
3934+
},
3935+
enumerable: true,
3936+
configurable: true
3937+
});
3938+
}
39373939
_this.$apollo.addSmartQuery(key, apollo[key]);
39383940
}
39393941
};
@@ -4050,7 +4052,7 @@ function install(Vue, options) {
40504052
ApolloProvider.install = install;
40514053

40524054
// eslint-disable-next-line no-undef
4053-
ApolloProvider.version = "3.0.0-beta.8";
4055+
ApolloProvider.version = "3.0.0-beta.9";
40544056

40554057
// Apollo provider
40564058
var ApolloProvider$1 = ApolloProvider;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-apollo",
3-
"version": "3.0.0-beta.8",
3+
"version": "3.0.0-beta.9",
44
"description": "Use Apollo and GraphQL with Vue.js",
55
"main": "dist/vue-apollo.umd.js",
66
"module": "dist/vue-apollo.esm.js",

0 commit comments

Comments
 (0)