MCPcopy Index your code
hub / github.com/CSFrequency/react-firebase-hooks / onChildAddedWithoutInitialLoad

Function onChildAddedWithoutInitialLoad

database/useList.ts:74–90  ·  view source on GitHub ↗
(
          addedChild: DataSnapshot,
          previousKey?: string | null
        )

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

onValueFunction · 0.90
onChildAddedFunction · 0.90

Tested by

no test coverage detected