title: Call mutation before every action Vuex
body: <p>Vuex allows us to write plugins that do something whenever a mutation is committed. Is there any way to have a similar functionality, but with actions?</p>
  
  <p>I notice you can "enhance" actions like the <a href="https://github.com/posva/vuexfire" rel="nofollow noreferrer">vuexfire library</a> does, is this the best way to do so? </p>
  
  <p>My goal is to have some way to track if/how many ajax calls are currently pending, and automatically show some kind of animation based on that number.</p>
  
  <p>Edit: To clarify, I am wondering if there is a way to do this using just Vuex, without pulling into additional libraries.</p>