Skip to content

Commit f27be47

Browse files
committed
Fix incorrect example
1 parent fb0fe41 commit f27be47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firestore/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const FirestoreCollection = () => {
6060
const [value, loading, error] = useCollection(
6161
firebase.firestore().collection('hooks'),
6262
{
63-
snapshotListenOptions: { includeMetadataChanges: true }
63+
snapshotListenOptions: { includeMetadataChanges: true },
6464
}
6565
);
6666
return (
@@ -176,7 +176,7 @@ const FirestoreDocument = () => {
176176
const [value, loading, error] = useDocument(
177177
firebase.firestore().doc('hooks/nBShXiRGFAhuiPfBaGpt'),
178178
{
179-
includeMetadataChanges: true,
179+
snapshotListenOptions: { includeMetadataChanges: true },
180180
}
181181
);
182182
return (

0 commit comments

Comments
 (0)