@@ -47,9 +47,9 @@ The `useCollection` hook takes the following parameters:
4747
4848Returns:
4949
50- - ` snapshot ` : a ` firebase.firestore.QuerySnapshot ` , or ` void ` if no query is supplied
50+ - ` snapshot ` : a ` firebase.firestore.QuerySnapshot ` , or ` undefined ` if no query is supplied
5151- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
52- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
52+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
5353
5454#### Full example
5555
@@ -100,9 +100,9 @@ The `useCollectionOnce` hook takes the following parameters:
100100
101101Returns:
102102
103- - ` snapshot ` : a ` firebase.firestore.QuerySnapshot ` , or ` void ` if no query is supplied
103+ - ` snapshot ` : a ` firebase.firestore.QuerySnapshot ` , or ` undefined ` if no query is supplied
104104- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
105- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
105+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
106106
107107### useCollectionData
108108
@@ -122,9 +122,9 @@ The `useCollectionData` hook takes the following parameters:
122122
123123Returns:
124124
125- - ` values ` : an array of ` T ` , or ` void ` if no query is supplied
125+ - ` values ` : an array of ` T ` , or ` undefined ` if no query is supplied
126126- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
127- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
127+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
128128
129129### useCollectionDataOnce
130130
@@ -143,9 +143,9 @@ The `useCollectionDataOnce` hook takes the following parameters:
143143
144144Returns:
145145
146- - ` values ` : an array of ` T ` , or ` void ` if no query is supplied
146+ - ` values ` : an array of ` T ` , or ` undefined ` if no query is supplied
147147- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
148- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
148+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
149149
150150### useDocument
151151
@@ -163,9 +163,9 @@ The `useDocument` hook takes the following parameters:
163163
164164Returns:
165165
166- - ` snapshot ` : a ` firebase.firestore.DocumentSnapshot ` , or ` void ` if no query is supplied
166+ - ` snapshot ` : a ` firebase.firestore.DocumentSnapshot ` , or ` undefined ` if no query is supplied
167167- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
168- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
168+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
169169
170170#### Full example
171171
@@ -207,9 +207,9 @@ The `useDocumentOnce` hook takes the following parameters:
207207
208208Returns:
209209
210- - ` snapshot ` : a ` firebase.firestore.DocumentSnapshot ` , or ` void ` if no reference is supplied
210+ - ` snapshot ` : a ` firebase.firestore.DocumentSnapshot ` , or ` undefined ` if no reference is supplied
211211- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
212- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
212+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
213213
214214### useDocumentData
215215
@@ -229,9 +229,9 @@ The `useDocumentData` hook takes the following parameters:
229229
230230Returns:
231231
232- - ` value ` : ` T ` , or ` void ` if no query is supplied
232+ - ` value ` : ` T ` , or ` undefined ` if no query is supplied
233233- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
234- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
234+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
235235
236236### useDocumentDataOnce
237237
@@ -250,6 +250,6 @@ The `useDocumentDataOnce` hook takes the following parameters:
250250
251251Returns:
252252
253- - ` value ` : ` T ` , or ` void ` if no query is supplied
253+ - ` value ` : ` T ` , or ` undefined ` if no query is supplied
254254- ` loading ` : a ` boolean ` to indicate if the data is still being loaded
255- - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` void ` if there is no error
255+ - ` error ` : Any ` Error ` returned by Firebase when trying to load the data, or ` undefined ` if there is no error
0 commit comments