Firebase Firestore
Setup
Before using the Tanstack Query Firebase hooks for Firestore, ensure you have configured your Firebase application to setup an Firestore instance:
import { initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
// Initialize your Firebase app
initializeApp({ ... });
// Get the Firestore instance
const firestore = getFirestore(app);