MCPcopy Create free account
hub / github.com/FirebaseExtended/reactfire / FirestoreWrapper

Function FirestoreWrapper

example/withSuspense/Firestore.tsx:119–127  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

117};
118
119function FirestoreWrapper({ children }) {
120 const { data: firestoreInstance } = useInitFirestore(async (firebaseApp) => {
121 const db = initializeFirestore(firebaseApp, {});
122 await enableIndexedDbPersistence(db);
123 return db;
124 });
125
126 return <FirestoreProvider sdk={firestoreInstance}>{children}</FirestoreProvider>;
127}
128
129export const Firestore = (props) => {
130 return (

Callers

nothing calls this directly

Calls 1

useInitFirestoreFunction · 0.85

Tested by

no test coverage detected