2017-07-25 15:01:53 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
2018-09-14 04:25:13 -04:00
|
|
|
import notesModule from './modules';
|
2017-07-25 15:01:53 -04:00
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-05-08 11:09:28 -04:00
|
|
|
// 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();
|