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

Function onChildAdded

database/useList.ts:29–34  ·  view source on GitHub ↗
(
      snapshot: DataSnapshot | null,
      previousKey?: string | null
    )

Source from the content-addressed store, hash-verified

27 }
28
29 const onChildAdded = (
30 snapshot: DataSnapshot | null,
31 previousKey?: string | null
32 ) => {
33 dispatch({ type: 'add', previousKey, snapshot });
34 };
35
36 const onChildChanged = (snapshot: DataSnapshot | null) => {
37 dispatch({ type: 'change', snapshot });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected