title: Semi-advanced logic inside Vuex getter
body: <p>How much logic can be used inside a vuex getter? Where is the line drawn for what is bad practice?</p>
  
  <p>Example code:</p>
  
  <pre><code>totalShippingFee: state =&gt; {
    let newTotalShippingFee = 0;
  
     for (let i = 0; i &lt; state.shippingFees.length; i += 1) {
        newTotalShippingFee += state.shippingFees[i].fee;
     }
  
     return newTotalShippingFee;
  }
  </code></pre>
  
  <p>Is it okay to have a for loop and this much logic inside this vuex getter?</p>