Skip to content

interference between :firestore/on-snapshot subscriptions #26

@jahenderson777

Description

@jahenderson777

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions