Getting Started
The @react-query-firebase/firestore
package provides hooks querying,
subscribing and modifying collections and documents on Cloud Firestore.
Usage
To use the hooks, export a Firestore
instance from your codebase, e.g:
// src/firebase.js
import { initializeApp } from 'firebase/app';
import { getFirestore } from 'firebase/firestore';
const firebase = initializeApp({
...
});
export const firestore = getFirestore(firebase);