[Vuejs]-Why firestore doesnt upgrade while firebase realtime database updated

0👍

There’s a difference on how you initiate RTDB and Firestore. It’s not fully included on your code but you should pay attention on how you create a reference. Unlike on RTDB where you use firebase.database().ref(), on Firestore, you create a document reference using firebase.firestore().doc().

Try this:

var store = firebase.firestore().doc('/status/' + user);

Leave a comment