title: Dynamically populate Vuex state
body: <p>I need to load a different version of state based on a <code>data</code> variable in the root component.</p>
  
  <p>App.vue:</p>
  
  <pre><code>export default {
    store : store,
    name: 'app',
    data() {
      clientId : 1  
    }
  }
  </code></pre>
  
  <p>store.js:</p>
  
  <pre><code>export const store = new Vuex.Store({
    state : {
      clientConfig : clientConfig
  });
  </code></pre>
  
  <p>And the <code>clientConfig</code> would be store in a separate file.</p>
  
  <p>What is the best way to achieve a dynamic/programmatic loading of the Vuex state based on some input to the initial Vuejs App?</p>
  
  <p>Thanks!</p>