When my application starts I do an initial fetch to Firebase to pull down all my data. When I later add data to my Firebase, I only want it to get the new child that\'s been
If you need both new data and subsequent data, use child_added
. It will fire immediately for all existing children and subsequently for any child that is added.
if you only want new data, add a timestamp to your children and ref.orderByChild('timestamp').startAt(Date.now())
If you need both new data and subsequent data, but want to treat the initial children differently: use child_added
and value
as you do now.
Also see: How to only get new data without existing data from a Firebase?