3YOURMIND/vue-comments

Extract instance variables

igeligel opened this issue · 0 comments

Instead of having vue instance variables use them via a prop of the main component.

Right now the mounted function of the CommentContainer.vue is accessing those variables directly and instead it should be given as a prop to this component so it does not rely on global scope.

this.$store.dispatch('ADD_USER_DATA', this.$djangoContext);
this.$store.dispatch('ADD_PROJECT_DATA', this.$projectData);

Examine what is inside those objects and abstract it away.