Replies: 1 comment 5 replies
-
Would love to know this as well! Not being able to provide our users feedback on what's synced and what hasn't is a really poor user experience. Would really appreciate a way to access the number of items left to sync both at a global and collection level. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When a user of our app loses connectivity and creates documents, these are stored in the local cache to be later synchronized by the Firestore client.
How can I obtain the status of what's left to be sync'd?
So far our attempt is setting a listener on all collections:
However this ends up taking an unacceptably long time (~25 seconds on my fast laptop). Our collections are huge (100k+ documents) although they are consumed via queries elsewhere in the app. Not sure how many are being stored in cache.
Is there a more efficient way to check for documents that need to be synced?
Beta Was this translation helpful? Give feedback.
All reactions