title: How to get vuex state from a javascript file (instead of a vue component)
body: <p>I am working with vuex (2.1.1) and get things working within vue single file components. However to avoid too much cruft in my vue single file component I moved some functions to a <code>utils.js</code> module which I import into the vue-file. In this <code>utils.js</code> I would like to read the vuex state. How can I do that? As it seems approaching the state with getters etc is presuming you are working from within a vue component, or not? </p>
  
  <p>I tried to <code>import state from '../store/modules/myvuexmodule'</code> and then refer to <code>state.mystateproperty</code> but it always gives 'undefined', whereas in the vue-devtools I can see the state property does have proper values.</p>
  
  <p>My estimate at this point is that this is simply not 'the way to go' as the state.property value within the js file will not be reactive and thus will not update or something, but maybe someone can confirm/ prove me wrong.</p>