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?
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?