Is it possible to retrieve the key of the removed child's key in Firbase's on('child_removed')
callback function?
From the Firebase documentation for on('child_removed'
:
This event will be triggered once every time a child is removed. The DataSnapshot passed into the callback will be the old data for the child that was removed.
firebaseRef.on('child_removed', function(oldChildSnapshot) {
console.log('Child '+oldChildSnapshot.key()+' was removed');
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With