adding data listening, user getching and using more of recoil

This commit is contained in:
Arjun Patel
2022-02-03 17:14:22 -08:00
parent 4b65d6cd68
commit 6a6f0f4aef
20 changed files with 302 additions and 517 deletions
@@ -15,13 +15,15 @@ import Collections from "./collections";
export default class ConversationService {
private db: Firestore = getFirestore();
async test() {
async test(): Promise<boolean> {
const docRef = doc(this.db, "test", "test");
await setDoc(
docRef,
{ hi: " hiii", lastUpdatedDate: serverTimestamp() },
{ merge: true }
);
return false;
}
async createConversation(