Skip to content

Instantly share code, notes, and snippets.

@MitchellBouwman
Created January 30, 2020 10:39
Show Gist options
  • Save MitchellBouwman/0c2592f3bee2feaadea0c86592db44e0 to your computer and use it in GitHub Desktop.
Save MitchellBouwman/0c2592f3bee2feaadea0c86592db44e0 to your computer and use it in GitHub Desktop.
import Vuex from 'vuex'
import Vue from 'vue'
Vue.use(Vuex)
export default new Vuex.Store({
strict: true,
state: {
},
getters: {
getterName(state) {
//...
},
},
actions: {
functionName({commit, dispatch, state}, payload = {}){
//...
}
},
mutations: {
mutationName(state, payload){
//...
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment