invertase / invertase/tanstack-query-firebase

Querying firestore documents with subscribe never fetches

Open
#73 8 comments 13 reactions 0 assignees View on GitHub
react-query-firebase
Dominant language
TypeScript
Stars
462
Forks
69
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/14802302/196741925-24e6e7df-23c0-403d-8da8-ba836aa6a6b2.png)

it does work with useFirestoreQuery

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.