20.06 Read Data - When Task Deleted

This commit is contained in:
Fredrick W. Warren 2021-02-15 07:41:31 -08:00
parent ad8066b76e
commit 8a28fd068a

View File

@ -91,6 +91,12 @@ const actions = {
} }
commit('updateTask', payload) commit('updateTask', payload)
}) })
// child deleted
userTasks.on('child_removed', snapshot => {
const taskId = snapshot.key
commit('deleteTask', taskId)
})
} }
} }