Skip to content

react-query-firebase / firestore / useFirestore

Function: useFirestore()

ts
function useFirestore(): Firestore

Defined in: src/firestore/useFirestore.ts:10

Provides a hook to access the Firestore instance from the Firebase context. It extracts the Firestore object from the Firebase context, allowing components to interact with Firestore services.

Returns

Firestore

The Firestore instance from the Firebase context.

Released under the MIT License.