import Vue from 'vue'; import Vuex from 'vuex'; import * as actions from './actions'; import * as getters from './getters'; import mutations from './mutations'; Vue.use(Vuex); export default new Vuex.Store({ state: { notes: [], targetNoteHash: null, lastFetchedAt: null, // View layer isToggleStateButtonLoading: false, // holds endpoints and permissions provided through haml notesData: {}, userData: {}, noteableData: {}, }, actions, getters, mutations, });