()
| 92 | }; |
| 93 | |
| 94 | const StaticValue = () => { |
| 95 | const firestore = useFirestore(); |
| 96 | |
| 97 | const ref = doc(firestore, 'count/counter'); |
| 98 | |
| 99 | const { status, data } = useFirestoreDocDataOnce(ref); |
| 100 | |
| 101 | if (status === 'loading') { |
| 102 | return <LoadingSpinner />; |
| 103 | } |
| 104 | return <span>{(data as any).value}</span>; |
| 105 | }; |
| 106 | |
| 107 | export const Firestore = () => { |
| 108 | const {status, data: firestoreInstance} = useInitFirestore(async (firebaseApp) => { |
nothing calls this directly
no test coverage detected