Skip to content

Commit b09494a

Browse files
authored
fix: firestore newly added data not shown (#16)
Reason: hasPendingWrites always returns true for non FieldValue data
1 parent c4e46fe commit b09494a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/firestore_pagination.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,8 @@ class _FirestorePaginationState extends State<FirestorePagination> {
247247
latestDocQuery = latestDocQuery.endBeforeDocument(_docs.first);
248248
}
249249

250-
_liveStreamSub = latestDocQuery.snapshots().listen(
250+
_liveStreamSub =
251+
latestDocQuery.snapshots(includeMetadataChanges: true).listen(
251252
(QuerySnapshot snapshot) async {
252253
await tempSub?.cancel();
253254
if (snapshot.docs.isEmpty ||

0 commit comments

Comments
 (0)