Skip to content

Commit 29184c8

Browse files
authored
Merge pull request #141 from cryser29/master
fix: useList works wrong when a new child is added
2 parents aeadd15 + a107bd9 commit 29184c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/useList.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const useList = (query?: firebase.database.Query | null): ListHook => {
8181
return;
8282
}
8383

84-
onChildAdded(snapshot, previousKey);
84+
onChildAdded(addedChild, previousKey);
8585
};
8686

8787
childAddedHandler = ref.on(

0 commit comments

Comments
 (0)