Firebase child_added for new items only
问题 I am using Firebase and Node with Redux. I am loading all objects from a key as follows. firebaseDb.child('invites').on('child_added', snapshot => { }) The idea behind this method is that we get a payload from the database and only use one action to updated my local data stores via the Reducers. Next, I need to listen for any NEW or UPDATED children of the key invite. The problem now, however, is that the child_added event triggers for all existing keys, as well as newly added ones. I do not