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

interference between :firestore/on-snapshot subscriptions #26

Open
jahenderson777 opened this issue Sep 4, 2018 · 1 comment
Open

Comments

@jahenderson777
Copy link

jahenderson777 commented Sep 4, 2018

I am finding that multiple :firestore/on-snapshot subscriptions interfere with each other.
e.g.
[:firestore/on-snapshot {:path-collection [:mydocs] :order-by [[:time :asc]] :limit 10}]
and
[:firestore/on-snapshot {:path-collection [:mydocs] :order-by [[:time :asc]] :limit 1}]

Randomly, after a few modifications to the firestore documents the "limit 10" query starts to return less than 10 results, and then less and less, until it returns zero documents, then the "limit 1" query also returns zero documents. It's almost like the cached query results are getting mixed up with each other.

EDIT: and to clarify, the documents are not being removed from firestore db. If you reload the page, all the documents re-appear as they should.

Can you suggest what I might be doing wrong, or could this be a bug?

@gabrielsimoes
Copy link
Contributor

Sorry, it's been a long time, but I have only been able to look into this now. Are you still facing the issue? I'm not sure I understand what is happening, maybe if you could describe or give me an example?

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