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: 0b19589215c59f3e0f15fbff24907803e082ac0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
import * as getters from './getters';
import actions from './actions';
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;