Created
January 30, 2020 10:39
-
-
Save MitchellBouwman/0c2592f3bee2feaadea0c86592db44e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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