At the moment I have document snapshots that are coming from my phone's cache. I know this from
print(document.metadata.isFromCache ? "NOT FROM NETWORK" : "FROM NETWORK");// document is a DocumentSnapshot
flutter: NOT FROM NETWORK
However I have deleted some of these documents off firestore, but they are still appearing. I would like to know if there is a way in which I can reset my cache for firestore in flutter so that all the documents are from the cloud.
Thanks for any help - much appreciated.
document.metadata.isFromCacheshould typically only betrueif the device has no connection to the server, in which case it is impossible for it to know that the document was deleted. If you think that doesn't explain your scenario, you might want to edit the question to include step-by-step instructions and code on how we can reproduce the problem.