Currently I have a component that has a computed property that updates from the Vuex store. This part works perfectly. What I'm confused about is once that computed property updates, I have to always tweak the data accordingly for my view. WHat is the best way to achieve this?
For example:
My component has:
computed: {
players: function() {
return this.$store.state.players;
},
I previously had a function setupPlayers(data) that tweaked this info and provided it for the view.
My question now is if computed players changes I'd like to run a function that tweaks the data for the view. How do I do this? OR is my approach incorrect?