Last active
April 11, 2020 09:23
-
-
Save Serhansolo/8c2878107d2042e8ba1362f917901e83 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Vue from "vue"; | |
import Vuex from "vuex"; | |
import mutations from "./mutations"; | |
import actions from "./actions"; | |
import getters from "./getters"; | |
Vue.use(Vuex); | |
const initialState = () => { | |
return { user: null, error: null }; | |
}; | |
export default new Vuex.Store({ | |
state: initialState(), | |
mutations: mutations, | |
actions: actions, | |
getters: getters | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment