Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « cluster_dropdown « store « create_cluster « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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;