()
| 38 | }; |
| 39 | |
| 40 | const StaticValue = () => { |
| 41 | const firestore = useFirestore(); |
| 42 | |
| 43 | const ref = doc(firestore, 'count/counter'); |
| 44 | |
| 45 | const { data } = useFirestoreDocDataOnce(ref); |
| 46 | |
| 47 | return <span>{(data as any).value}</span>; |
| 48 | }; |
| 49 | |
| 50 | const List = ({ query, removeAnimal }) => { |
| 51 | const { data: animals } = useFirestoreCollectionData(query, { idField: 'id' }); |
nothing calls this directly
no test coverage detected