debian-mirror-gitlab/app/assets/javascripts/notes/stores/index.js
2020-05-24 23:13:21 +05:30

11 lines
300 B
JavaScript

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();