2018-03-17 18:26:18 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
2018-12-05 23:21:45 +05:30
|
|
|
import notesModule from './modules';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
// 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();
|