2019-10-29 20:07:52 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import mutations from './mutations';
|
2021-02-14 13:09:20 -05:00
|
|
|
import createState from './state';
|
2019-10-29 20:07:52 -04:00
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-12-23 19:10:25 -05:00
|
|
|
export const createStore = (initialState) =>
|
2019-10-29 20:07:52 -04:00
|
|
|
new Vuex.Store({
|
|
|
|
state: createState(initialState),
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore;
|