Closed SumNeuron closed 5 years ago
Following James2Doyle's example, if you change the accountsdatabase to a firestore in the file /store/index.js
database
firestore
/store/index.js
const actions = { setAccountRef: firebaseAction(({ bindFirebaseRef }, path) => { return bindFirebaseRef('account', firebase.firestore().doc(path)) // firestore // return bindFirebaseRef('account', firebase.database().ref(path)) // <--- original }), ... }
doesnt work, throwing: TypeError: "source.on is not a function"
using ref throws
ref
"firebaseWEBPACK_IMPORTED_MODULE3default.a.firestore(...).ref is not a function"
please add support for firestore
Answered in vuefire
Following James2Doyle's example, if you change the accounts
database
to afirestore
in the file/store/index.js
doesnt work, throwing: TypeError: "source.on is not a function"
using
ref
throws"firebaseWEBPACK_IMPORTED_MODULE3default.a.firestore(...).ref is not a function"
please add support for firestore