summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes/stores/index.js
blob: c4895f586565ae19f65e66144435a5b63a6e5103 (plain)
1
2
3
4
5
6
7
8
9
10
11
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();