title: How to access Nuxt context variable from Vuex action
body: <p>I want to access context variable to use the <code>isMobile</code> flag to select a different endpoint depending on the result. I could pass it on the <code>dispatch</code> from the component, but I know there should be one way to do it.</p>
  <pre class="lang-js prettyprint-override"><code>export const actions = {
  ...
    signUpGoogle({ commit }) {
      fireauth.useDeviceLanguage()
  
      if (context.isMobile) {
        fireauth.signInWithPopup(GoogleProvider).then ...
  
      } else {
        fireauth.signInWithRedirect(GoogleProvider)
      }
  
  }
  </code></pre>
  <p>I saw here that it can be obtained on server init, but I really don't want to rely on this as caching will mess things up</p>
  <p><a href="https://nuxtjs.org/guide/vuex-store/#the-nuxtserverinit-action" rel="nofollow noreferrer">https://nuxtjs.org/guide/vuex-store/#the-nuxtserverinit-action</a></p>
  <p>Thanks for the help</p>