Within my app, I am utilizing Firebase alongside Vuex. One particular action in Vuex looks like this:
async deleteTodo({ commit }, id) {
await fbs.database().ref(`/todolist/${store.state.auth.userId}/${id}`)
.remove()
.then(() => {
// resolve this issue
console.log('Todo deleted', commit);
})
}
I'm trying to figure out how to eliminate {commit}
as a parameter if it's not necessary for the operation. Currently, I am receiving an error stating 'commit assigned but never used.'