[firestore]: Firestore snapshot does return empty data for existing doc #12755
Labels
platform: web
Issues / PRs which are specifically for web.
plugin: cloud_firestore
type: bug
Something isn't working
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
Web
Description
If the persistence is enabled for web, some snapshots return not exist even if docs do exist.
It can be reproduced when 1) firebase auth is used 2) the persistence is enabled 3) a user deletes site data
Reproducing the issue
An example project: https://github.com/mogol/firestore-web-flutter/blob/master/lib/main.dart
If persistence is off, it works as expected: it shows the latest value after tab refresh.
FirebaseFirestore.instance.settings = const Settings(persistenceEnabled: false);
Firebase Core version
2.30.1
Flutter Version
3.19.6
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetAdditional context and comments
Seems related to #10331
The text was updated successfully, but these errors were encountered: