title: How to watch store values from vuex?
body: <p>I am using <code>vuex</code> and <code>vuejs 2</code> together.</p>
  
  <p>I am new to <code>vuex</code>, I want to watch a <code>store</code> variable change.</p>
  
  <p>I want to add the <code>watch</code> function in my <code>vue component</code></p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>import Vue from 'vue';
  import {
    MY_STATE,
  } from './../../mutation-types';
  
  export default {
    [MY_STATE](state, token) {
      state.my_state = token;
    },
  };
  </code></pre>
  
  <p>I want to know if there are any changes in the <code>my_state</code></p>
  
  <p>How do I watch <code>store.my_state</code> in my vuejs component?</p>