Realtime update from firestore

My goal here is realtime update from firebase. I need to get comment from firebase and update it on this.note. Somewhere in function update() I did something wrong. Tutorial I followed. methods: { update(){ db.collection(“form”).onSnapshot((querySnapshot)=>{ this.userdata1=[] querySnapshot.forEach((doc)=>{ this.userdata1.push(doc.data().comment); }); }); }, editComment(userDetails) { $(‘#commentModal’).modal(‘show’); this.note = userDetails.comment || ”; this.activeuser = userDetails.id; }, saveComment() {…

Details