Skip to content

"type: once" for Firestore #225

Open
@optimistiks

Description

According to Firestore documentation, https://firebase.google.com/docs/firestore/pricing#listens,
when you use onSnapshot, you are charged every time any document in the result set is changed or removed from a result set due to some change.

When using firestoreConnect, there is no way to make sure the data only fetched once, just as we can do with firebaseConnect. It means when you don't need realtime updates, you have to either write a custom data loader instead of using firestoreConnect, or be charged for a lot of unnecessary read operations.

It would be great to have an ability to fetch data once when using firestoreConnect. Maybe something along those lines { storeAs: "foo", once: true }, or something like that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions