child_added gets triggered after remove
问题 I've created this handler to watch for new children being created. This little trick stops the child_added event from triggering my code on each page load. Instead it only gets triggered when something is actually added. // Listen for new rooms being created var first_room_added_after_load = true; this._roomRef.endAt().limit(1).on('child_added', function(snapshot){ if (first_room_added_after_load) { // we want to skip the first room, because it will already exist first_room_added_after_load =