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:
committed by
Guillaume Chau
parent
986d590e2e
commit
00a3efdacd
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user