gitlab-org--gitlab-foss/app/assets/javascripts/notes/stores/index.js

12 lines
300 B
JavaScript
Raw Normal View History

import Vue from 'vue';
import Vuex from 'vuex';
import notesModule from './modules';
Vue.use(Vuex);
// NOTE: Giving the option to either use a singleton or new instance of notes.
const notesStore = () => new Vuex.Store(notesModule());
export default notesStore;
export const store = notesStore();