Top "Vuex" questions

Vuex is a state management pattern + library for Vue.

Is there a way to dispatch actions between two namespaced vuex modules?

Is it possible to dispatch an action between namespaced modules? E.g. I have vuex modules "gameboard" and "notification". Each …

vue.js vuejs2 vuex
How to clear state in vuex store?

My state in vuex store is huge. Is there a way to reset all the data in state in one …

vue.js vuejs2 vuex
How to navigate using vue router from Vuex actions

I am creating a web app with Vue 2.x and Vuex 2.x. I am fetching some information from a remote …

javascript vue.js vuex
Accessing Vuex state when defining Vue-Router routes

I have the following Vuex store (main.js): import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) //init …

javascript vue.js vuejs2 vue-router vuex
How do I set initial state in Vuex 2?

I am using Vue.js 2.0 and Vuex 2.0 for a small app. I am initializing the the store in the 'created' …

vue.js vuejs2 vuex
Vuex Action vs Mutations

In Vuex, what is the logic of having both "actions" and "mutations?" I understand the logic of components not being …

vue.js vuex
How to access Vuex module getters and mutations?

I'm trying to switch to using Vuex instead of my homegrown store object, and I must say I'm not finding …

vue.js vuex
Vuex: Call getters from action

Is there a way for a dispatch/action to call a getter inside of it? mutations: { setData(state, data) { state.…

javascript ecmascript-6 vuejs2 vuex
Vue/Vuex unknown action type

I have started implementing Vuex in my application and I decided to split my store into modules. For the beginning …

javascript vue.js vuex
Communication between sibling components in VueJs 2.0

Overview In Vue.js 2.x, model.sync will be deprecated. So, what is a proper way to communicate between sibling …

javascript vue.js vuejs2 vue-component vuex