A calculation attribute is defined in the getters.js file
const doneTodos = ( state ) => {
return state.todos.filter( todo => todo.done ).length
}
In the mutations.js file, define an add method
add( state ) {
// console.log(state.doneTodos)
state.countPP
}
I want to access the calculation property doneTodos, inside the add method of mutations.
how can I call getter? inside the add method