Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion documents #7

Open
dedonnodev opened this issue Feb 24, 2023 · 1 comment
Open

Deletion documents #7

dedonnodev opened this issue Feb 24, 2023 · 1 comment

Comments

@dedonnodev
Copy link

Hi there,
what happens when you have a document in the cache that has been deleted via server outside from flutter?
Is there any logic that checks if the documents in the cache still exist?

@danReynolds
Copy link
Owner

I know that it should delete it from the cache if you were to have an active stream listener based on the expectations from this issue: firebase/flutterfire#9564.

I'm not sure though if for example, you fetch document A, then close the app, then delete document A on the server, then reopen the app and then fetch document A from the server, whether the fact that it fails to fetch document A deletes the cached document A or not. Hmm. I think this is a question for Firestore itself. I'm not sure how it handles that case. I suspect that it might remain in the cache.

I'll look through the docs more and ask around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants