// initial state const state = { config: {}, settings: { limit: 50, expanded: [], }, }; // getters const getters = {}; // actions const actions = {}; // mutations const mutations = { setConfig(state, value) { state.config = value; }, setSettings(state, value) { state.settings = value; }, }; export default { namespaced: true, state, getters, actions, mutations };