0👍
Ah, I neglected to use $patch
. This worked for me:
setUserData(uid) {
const user = useFirestore(doc(db, "users", uid));
this.$patch({ userData: user });
}
If I’m using this in the wrong way, please let me know.
- [Vuejs]-How to insert a value inside a particular array of object
- [Vuejs]-How to create Android App by using VueJs SPA (created in Laravel)?
Source:stackexchange.com