({ children })
| 117 | }; |
| 118 | |
| 119 | function 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 | |
| 129 | export const Firestore = (props) => { |
| 130 | return ( |
nothing calls this directly
no test coverage detected