Skip to content

[Firestore] FR: keepSynced - control what gets in the offline cache #5

@curiousily

Description

@curiousily

What feature would you like to see?

Something similar to what the Realtime Database offers:

docRef.keepSynced(keepOnlyThisReferenceInLocalCache=true)

This should store ALL data that this document reference contains and remove ALL other data from the cache.

How would you use it?

It would be great to limit the amount of data Firestore syncs and control what gets synced (our users experience cache misses when they are offline, frequently). Our team organized the document model so that every user has its own root that we would like to keep in sync.

That way, one can use the Firestore database as an offline-first solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions