blob: de8cc44fa7c4441ea819b30a1958ddc9193a7ef8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import state from './state';
const createStore = ({ fetchFn, initialState }) => ({
actions: actions(fetchFn),
getters,
mutations,
state: Object.assign(state(), initialState || {}),
});
export default createStore;
|