feat: Let the ApolloQuery be a renderless component if tag prop is undefined (#365)

* Let the ApolloQuery be a renderless component if `tag` prop is undefined

* Let the ApolloMutation component be a renderless component if `tag` prop is undefined
This commit is contained in:
Juan Antonio Gómez Cabo
2018-08-30 13:00:53 +01:00
committed by Guillaume Chau
parent 986d590e2e
commit 00a3efdacd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -81,6 +81,6 @@ export default {
} else {
result = [result].concat(this.$slots.default)
}
return h(this.tag, result)
return this.tag ? h(this.tag, result) : result
},
}
+1 -1
View File
@@ -192,6 +192,6 @@ export default {
} else {
result = [result].concat(this.$slots.default)
}
return h(this.tag, result)
return this.tag ? h(this.tag, result) : result
},
}