// Function allows multiple state instances
export const state = () => ({
items: []
})
export const mutations = {
add (state, item) {
state.items.push(item)
}
}
// Function allows multiple state instances
export const state = () => ({
items: []
})
export const mutations = {
add (state, item) {
state.items.push(item)
}
}