Move times outside of the result data structure (#308)

closes #307
This commit is contained in:
Yordis Prieto
2018-06-18 06:02:47 -04:00
committed by Guillaume Chau
parent 1a813c9574
commit dff5fb9582
+4 -2
View File
@@ -71,8 +71,8 @@ export default {
loading: false,
networkStatus: 7,
error: null,
times: 0,
},
times: 0,
}
},
@@ -138,9 +138,10 @@ export default {
loading,
error,
networkStatus,
times: ++this.$_times,
}
this.times = ++this.$_times;
this.$emit('result', this.result)
},
error (error) {
@@ -169,6 +170,7 @@ export default {
render (h) {
let result = this.$scopedSlots.default({
result: this.result,
times: this.times,
query: this.$apollo.queries.query,
isLoading: this.$apolloData.loading,
gqlError: this.result && this.result.error && this.result.error.gqlError,