20.06 Read Data - When Task Deleted
This commit is contained in:
parent
ad8066b76e
commit
8a28fd068a
@ -91,6 +91,12 @@ const actions = {
|
||||
}
|
||||
commit('updateTask', payload)
|
||||
})
|
||||
|
||||
// child deleted
|
||||
userTasks.on('child_removed', snapshot => {
|
||||
const taskId = snapshot.key
|
||||
commit('deleteTask', taskId)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user