There could be more added option update: Here some example: async updateClick(id) { const updatedDescription = prompt("Enter the updated description:"); if (!updatedDescription) return; // If user cancels the prompt const db = getFirestore(app); const notesRef = doc(db, 'notes', id); await setDoc(notesRef, { description: updatedDescription }, { merge: true }); this.refreshNotes(); } this.updateClick(note.id)}>Update Notes
It works for me correctly. Thank You.😊
There could be more added option update:
Here some example:
async updateClick(id) {
const updatedDescription = prompt("Enter the updated description:");
if (!updatedDescription) return; // If user cancels the prompt
const db = getFirestore(app);
const notesRef = doc(db, 'notes', id);
await setDoc(notesRef, { description: updatedDescription }, { merge: true });
this.refreshNotes();
}
this.updateClick(note.id)}>Update Notes
Excellent video.
@8:27 is extends component, super props...old model ??
its not picking my data from database... although working properly.
Any github repo??