app/javascript/vue/tasks/observation_matrices/dashboard/store/store.js
import { createStore } from 'vuex'
import { GetterFunctions } from './getters/getters'
import { MutationFunctions } from './mutations/mutations'
function makeInitialState () {
return {
taxon: undefined,
combinations: false,
ranksList: [],
rankTable: {}
}
}
function newStore () {
return createStore({
state: makeInitialState(),
getters: GetterFunctions,
mutations: MutationFunctions
})
}
export {
newStore,
makeInitialState
}