Skip to content

Querying firestore documents with subscribe never fetches #73

Open
@CalvinMoylan

Description

@CalvinMoylan

just never finishes fetching. setting subscribe to false fetches instantly

const ref = doc(firestore, "games", id);

const { data, isLoading } = useFirestoreDocumentData(["games", id], ref, {
    subscribe: true,
});

image

it does work with useFirestoreQuery

"@react-query-firebase/firestore": "^1.0.0-dev.7"
"firebase": "^9.11.0"
"react-query": "^3.39.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    react-query-firebaseIssue is specific to React Query Firebase branch

    Type

    No type

    Projects

    Status

    Needs Acknowledgment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions