Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
This repository was archived by the owner on May 19, 2025. It is now read-only.

Firestore: mixin does not work well with persisted data for documents. #282

@merlinnot

Description

@merlinnot

When persistence is enabled for Firestore (by calling enablePersistence method) all documents and queries are cached locally. When using Firestore(Element|Mixin) with live: false I'd expect it to set the property value to locally cached data while the fresh copy is being downloaded. This behavior should be configurable when someone does not want to rely on locally cached data despite enabling persistence.

It can be achieved by using onSnapshot instead of get method (see 2f5d602#diff-cd706bcc157b02ba8cbc5d4fb834a3eeR198)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions