Skip to content

Commit ca0bd28

Browse files
authored
fix: apollo components should have emits (#1504)
1 parent 6f2cf30 commit ca0bd28

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/vue-apollo-components/src/ApolloMutation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export default {
5252
}
5353
},
5454

55+
emits: [ 'loading', 'done', 'error' ],
56+
5557
watch: {
5658
loading (value) {
5759
this.$emit('loading', value)

packages/vue-apollo-components/src/ApolloQuery.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ export default {
1515
}
1616
},
1717

18+
emits: [ 'loading', 'result', 'error' ],
19+
1820
props: {
1921
query: {
2022
type: [Function, Object],

0 commit comments

Comments
 (0)