Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix(vue): collection vue mixin reactivity on computed value fixed #93
Browse files Browse the repository at this point in the history
  • Loading branch information
michiel committed Jul 24, 2019
1 parent c2c6dbf commit 06f767f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/vue/src/Mixin/Collection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export default {
computed: {
collection() {
Expand All @@ -25,22 +24,16 @@ export default {
return Promise.reject();
}

this.initCollection();

return this.loadCollection();
},
mounted() {
if (!this.collectionName || !this.resourceType) {
return;
}

this.initCollection();
this.loadCollection();
},
methods: {
initCollection() {
this.$store.commit(`hyral_${this.resourceType}/SET_COLLECTION`, this.collection);
},
loadCollection() {
return this.collection.load();
},
Expand Down

0 comments on commit 06f767f

Please sign in to comment.