You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firestore/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -111,6 +111,7 @@ Returns:
111
111
-`snapshot`: a `firestore.QuerySnapshot`, or `undefined` if no query is supplied
112
112
-`loading`: a `boolean` to indicate if the data is still being loaded
113
113
-`error`: Any `firestore.FirestoreError` returned by Firebase when trying to load the data, or `undefined` if there is no error
114
+
-`reload()`: a function that can be called to trigger a reload of the data
114
115
115
116
### useCollectionData
116
117
@@ -163,6 +164,7 @@ Returns:
163
164
-`loading`: a `boolean` to indicate if the data is still being loaded
164
165
-`error`: Any `firestore.FirestoreError` returned by Firebase when trying to load the data, or `undefined` if there is no error
165
166
-`snapshot`: a `firestore.QuerySnapshot`, or `undefined` if no query is supplied. This allows access to the underlying snapshot if needed for any reason, e.g. to view the snapshot metadata
167
+
-`reload()`: a function that can be called to trigger a reload of the data
166
168
167
169
See [Transforming data](#transforming-data) for how to transform data as it leaves Firestore and access the underlying `id` and `ref` fields of the snapshot.
0 commit comments