Top "Vuex" questions

Vuex is a state management pattern + library for Vue.

How to access async store data in vue-router for usage in beforeEnter hook?

How is it possible to access store data in beforeEnter which is retrieved asynchronously via the store action? import store …

javascript vue.js vuex vue-router
Vuex 2.0 Dispatch versus Commit

Can someone explain when you would use a dispatch versus a commit? I understand a commit triggers mutation, and a …

javascript vue.js vuex
Can I do dispatch from getters in Vuex

Fiddle : here I am creating a webapp with Vue 2 with Vuex. I have a store, where I want to fetch …

javascript vue.js vue-component vuex vuejs2
Axios - Remove headers Authorization in 1 call only

How can I remove the axios.defaults.headers.common.Authorization only in 1 call? I'm setting the default for all the …

vuejs2 axios vuex
Vue 2 - vuex mapGetters and pass params

Is it possible to pass params with mapGetters? I have this in main Vue instance: computed: { filterAuthors() { return this.$store.…

vue.js vuejs2 vuex
Vuex $store properties not reactive when using computed property

I have a Vuex store, which I'm injecting into my instance: import store from '../store'; const mainNav = new Vue({ …

vue.js vuex
access store outside of component vuejs

I have a file for configuring my OpenID Connect authentication export const authMgr = new Oidc.UserManager({ userStore: new Oidc.WebStorageStateStore(), …

ecmascript-6 vue.js vuejs2 vue-component vuex
vuex namespaced mapState with multiple modules

I must be missing something. How can I use vuex mapState with multiple modules? As far as understand, besides passing …

javascript module namespaces vuex
How to correctly use Vue JS watch with lodash debounce

I'm using lodash to call a debounce function on a component like so: ... import _ from 'lodash'; export default { store, data: () =&…

javascript vue.js vuejs2 lodash vuex
Error: Cannot find module 'vue-loader-v16/package.json'

i am new to vue.js, just coming from react.js. the problem i am facing with the vue loader …

javascript vue.js vuex vue-router vue-loader