diff --git a/src/store/store-tasks.js b/src/store/store-tasks.js index 101fcbd..bc06589 100644 --- a/src/store/store-tasks.js +++ b/src/store/store-tasks.js @@ -91,6 +91,12 @@ const actions = { } commit('updateTask', payload) }) + + // child deleted + userTasks.on('child_removed', snapshot => { + const taskId = snapshot.key + commit('deleteTask', taskId) + }) } }