@@ -118,6 +118,7 @@ The `useCollectionData` hook takes the following parameters:
118118- ` query ` : (optional) ` firebase.firestore.Query ` for the data you would like to load
119119- ` options ` : (optional) ` Object ` with the following parameters:
120120 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.id ` property.
121+ - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
121122 - ` snapshotListenOptions ` : (optional) ` firebase.firestore.SnapshotListenOptions ` to customise how the collection is loaded
122123
123124Returns:
@@ -140,6 +141,7 @@ The `useCollectionDataOnce` hook takes the following parameters:
140141- ` options ` : (optional) ` Object ` with the following parameters:
141142 - ` getOptions ` : (optional) ` firebase.firestore.GetOptions ` to customise how the collection is loaded
142143 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.id ` property.
144+ - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
143145
144146Returns:
145147
@@ -225,6 +227,7 @@ The `useDocumentData` hook takes the following parameters:
225227- ` reference ` : (optional) ` firebase.firestore.DocumentReference ` for the data you would like to load
226228- ` options ` : (optional) ` Object ` with the following parameters:
227229 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.DocumentSnapshot.id ` property.
230+ - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
228231 - ` snapshotListenOptions ` : (optional) ` firebase.firestore.SnapshotListenOptions ` to customise how the collection is loaded
229232
230233Returns:
@@ -247,6 +250,7 @@ The `useDocumentDataOnce` hook takes the following parameters:
247250- ` options ` : (optional) ` Object ` with the following parameters:
248251 - ` getOptions ` : (optional) ` firebase.firestore.GetOptions ` to customise how the collection is loaded
249252 - ` idField ` : (optional) name of the field that should be populated with the ` firebase.firestore.DocumentSnapshot.id ` property.
253+ - ` refField ` : (optional) name of the field that should be populated with the ` firebase.firestore.QuerySnapshot.ref ` property.
250254
251255Returns:
252256
0 commit comments