title: How to watch for state change in Vuex properly?
body: <p>I'm using below code to watch for the change in Vuex state. The store file lies in the same directory. However, it doesn't seem to work. How do I watch for state change in vuex properly?</p>
  
  <pre><code>import store from './index'
  store.watch(
    (store) =&gt; store.state.base_url,
    () =&gt; {
      console.log('Watcher works')
    }
  )
  </code></pre>