title: Accessing Vue Store values in Router
body: <p>I need to access a variable from my store in my router. This variable is called 'isAdmin'. Now, when I'm using the following code, I'm getting the initial state (which has the value of 'false'):</p>
  
  <pre><code>console.log(store.state.isAdmin)
  </code></pre>
  
  <p>Although I've updated the 'isAdmin' value to 'true' committing an action, the state of 'isAdmin' continues to be as the initial state.</p>
  
  <p>Now, if I console.log the following object:</p>
  
  <pre><code>console.log(store.state)
  </code></pre>
  
  <p>I see this:</p>
  
  <p><a href="https://i.stack.imgur.com/ssbAF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ssbAF.png" alt="How to get isAdmin from there?"></a></p>
  
  <p>My question is: How do I get to the value of isAdmin after I've amended it in my store?</p>
  
  <p>Thank you!!!</p>