@@ -21,7 +21,7 @@ There are 2 variants of each hook:
2121- [ useDocumentData] ( #usedocumentdatatref )
2222- [ useDocumentDataOnce] ( #usedocumentdataoncetref )
2323
24- ## ` useCollection(query, options) `
24+ ### ` useCollection(query, options) `
2525
2626Parameters:
2727
@@ -35,7 +35,7 @@ Returns:
3535- ` loading ` : A ` boolean ` to indicate if the listener is still being loaded
3636- ` value ` : A ` firebase.firestore.QuerySnapshot `
3737
38- ### Example
38+ #### Example
3939
4040``` js
4141import { useCollection } from ' react-firebase-hooks/firestore' ;
@@ -65,7 +65,7 @@ const FirestoreCollection = () => {
6565};
6666```
6767
68- ## ` useCollectionOnce(query, options) `
68+ ### ` useCollectionOnce(query, options) `
6969
7070Parameters:
7171
@@ -85,7 +85,7 @@ Import:
8585import { useCollectionOnce } from ' react-firebase-hooks/firestore' ;
8686```
8787
88- ## ` useCollectionData<T>(ref, idField) `
88+ ### ` useCollectionData<T>(ref, idField) `
8989
9090As ` useCollection ` , but this hook returns a typed list of the
9191` QuerySnapshot.docs ` values, rather than the the ` QuerySnapshot ` itself.
@@ -110,7 +110,7 @@ Import:
110110import { useCollectionData } from ' react-firebase-hooks/firestore' ;
111111```
112112
113- ## ` useCollectionDataOnce<T>(ref, idField) `
113+ ### ` useCollectionDataOnce<T>(ref, idField) `
114114
115115Parameters:
116116
@@ -132,7 +132,7 @@ Import:
132132import { useCollectionDataOnce } from ' react-firebase-hooks/firestore' ;
133133```
134134
135- ## ` useDocument(docRef) `
135+ ### ` useDocument(docRef) `
136136
137137Parameters:
138138
@@ -146,7 +146,7 @@ Returns:
146146- ` loading ` : A ` boolean ` to indicate if the listener is still being loaded
147147- ` value ` : A ` firebase.firestore.DocumentSnapshot `
148148
149- ### Example
149+ #### Example
150150
151151``` js
152152import { useDocument } from ' react-firebase-hooks/firestore' ;
@@ -167,7 +167,7 @@ const FirestoreDocument = () => {
167167};
168168```
169169
170- ## ` useDocumentOnce(docRef) `
170+ ### ` useDocumentOnce(docRef) `
171171
172172Parameters:
173173
@@ -187,7 +187,7 @@ Import:
187187import { useDocumentOnce } from ' react-firebase-hooks/firestore' ;
188188```
189189
190- ## ` useDocumentData<T>(ref) `
190+ ### ` useDocumentData<T>(ref) `
191191
192192As ` useDocument ` , but this hook returns the typed contents of
193193` DocumentSnapshot.val() ` rather than the ` DocumentSnapshot ` itself.
@@ -212,7 +212,7 @@ Import:
212212import { useDocumentData } from ' react-firebase-hooks/firestore' ;
213213```
214214
215- ## ` useDocumentDataOnce<T>(ref) `
215+ ### ` useDocumentDataOnce<T>(ref) `
216216
217217Parameters:
218218
0 commit comments