Skip to content

Instantly share code, notes, and snippets.

@Serhansolo
Last active April 11, 2020 09:23
Show Gist options
  • Save Serhansolo/8c2878107d2042e8ba1362f917901e83 to your computer and use it in GitHub Desktop.
Save Serhansolo/8c2878107d2042e8ba1362f917901e83 to your computer and use it in GitHub Desktop.
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