Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Firebase syncing issue when persistance is involved #359

Closed
eimantas1998 opened this issue Nov 27, 2020 · 1 comment
Closed

Firebase syncing issue when persistance is involved #359

eimantas1998 opened this issue Nov 27, 2020 · 1 comment

Comments

@eimantas1998
Copy link

Hello, the issue is that sometimes firebase does not return some of the documents that satisfy the query. The issue happens when internet connection goes out for a bit then comes back up, then some of new documents get synced and some of them just don't.

The query I am using:

  Stream<List<Book>> streamBooks(List<String> bookIds) =>
      _firestore
          .collectionGroup('books')
          .where(BOOK_ID, whereIn: bookIds)
          .snapshots()
          .map((snap) => snap.docs
              .map((doc) => Book.fromJson(_addDocId(doc)))
              .toList());
@kevmoo
Copy link
Contributor

kevmoo commented Dec 16, 2020

We can only help with issues specific to this package. You may want to find a Firebase-focused discussion to ask about this.

@kevmoo kevmoo closed this as completed Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants