(
addedChild: DataSnapshot,
previousKey?: string | null
)
| 72 | const children: DataSnapshot[] = []; |
| 73 | |
| 74 | const onChildAddedWithoutInitialLoad = ( |
| 75 | addedChild: DataSnapshot, |
| 76 | previousKey?: string | null |
| 77 | ) => { |
| 78 | if (childrenToProcess > 0) { |
| 79 | childrenToProcess--; |
| 80 | children.push(addedChild); |
| 81 | |
| 82 | if (childrenToProcess === 0) { |
| 83 | onValue(children); |
| 84 | } |
| 85 | |
| 86 | return; |
| 87 | } |
| 88 | |
| 89 | onChildAdded(addedChild, previousKey); |
| 90 | }; |
| 91 | |
| 92 | childAddedHandler = firebaseOnChildAdded( |
| 93 | ref, |
nothing calls this directly
no test coverage detected