@@ -71,7 +71,7 @@ const FirestoreCollection = () => {
7171 {value && (
7272 < span>
7373 Collection: {' ' }
74- {value .docs .map (doc => (
74+ {value .docs .map (( doc ) => (
7575 < React .Fragment key= {doc .id }>
7676 {JSON .stringify (doc .data ())},{' ' }
7777 < / React .Fragment >
@@ -107,7 +107,7 @@ Returns:
107107### useCollectionData
108108
109109``` js
110- const [values , loading , error ] = useCollectionData< T > (query, options);
110+ const [values , loading , error ] = useCollectionData < T > (query, options);
111111```
112112
113113As ` useCollection ` , but this hook extracts a typed list of the ` firebase.firestore.QuerySnapshot.docs ` values, rather than the
@@ -120,6 +120,7 @@ The `useCollectionData` hook takes the following parameters:
120120 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.id ` property.
121121 - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
122122 - ` snapshotListenOptions ` : (optional) ` firebase.firestore.SnapshotListenOptions ` to customise how the collection is loaded
123+ - ` snapshotOptions ` : (optional) ` firebase.firestore.SnapshotOptions ` to customise how data is retrieved from snapshots
123124
124125Returns:
125126
@@ -130,7 +131,7 @@ Returns:
130131### useCollectionDataOnce
131132
132133``` js
133- const [values , loading , error ] = useCollectionDataOnce< T > (query, options);
134+ const [values , loading , error ] = useCollectionDataOnce < T > (query, options);
134135```
135136
136137As ` useCollectionData ` , but this hook will only read the current value of the ` firebase.firestore.Query ` .
@@ -142,6 +143,7 @@ The `useCollectionDataOnce` hook takes the following parameters:
142143 - ` getOptions ` : (optional) ` firebase.firestore.GetOptions ` to customise how the collection is loaded
143144 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.id ` property.
144145 - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
146+ - ` snapshotOptions ` : (optional) ` firebase.firestore.SnapshotOptions ` to customise how data is retrieved from snapshots
145147
146148Returns:
147149
@@ -216,7 +218,7 @@ Returns:
216218### useDocumentData
217219
218220``` js
219- const [value , loading , error ] = useDocumentData< T > (reference, options);
221+ const [value , loading , error ] = useDocumentData < T > (reference, options);
220222```
221223
222224As ` useDocument ` , but this hook extracts the typed contents of ` firebase.firestore.DocumentSnapshot.val() ` , rather than the
@@ -229,6 +231,7 @@ The `useDocumentData` hook takes the following parameters:
229231 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.DocumentSnapshot.id ` property.
230232 - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
231233 - ` snapshotListenOptions ` : (optional) ` firebase.firestore.SnapshotListenOptions ` to customise how the collection is loaded
234+ - ` snapshotOptions ` : (optional) ` firebase.firestore.SnapshotOptions ` to customise how data is retrieved from snapshots
232235
233236Returns:
234237
@@ -239,7 +242,7 @@ Returns:
239242### useDocumentDataOnce
240243
241244``` js
242- const [value , loading , error ] = useDocumentDataOnce< T > (reference, options);
245+ const [value , loading , error ] = useDocumentDataOnce < T > (reference, options);
243246```
244247
245248As ` useDocument ` , but this hook will only read the current value of the ` firebase.firestore.DocumentReference ` .
@@ -251,6 +254,7 @@ The `useDocumentDataOnce` hook takes the following parameters:
251254 - ` getOptions ` : (optional) ` firebase.firestore.GetOptions ` to customise how the collection is loaded
252255 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.DocumentSnapshot.id ` property.
253256 - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
257+ - ` snapshotOptions ` : (optional) ` firebase.firestore.SnapshotOptions ` to customise how data is retrieved from snapshots
254258
255259Returns:
256260
0 commit comments