0
with a problem to mount my next firebase reference
export default {
firebase () {
return {
gastos: db.ref(`user/${this.uid}/shop/`),
}
},
computed: {
uid () {
return this.$store.getters.getUser.uid
},
}
}
what happens is that here gastos: db.ref(1user/${this.uid}/shop/')
mine this.uid
not yet set in my store and does not mount my firebase reference
but if I use {{uid}}
in the template ta ok, what I’m doing wrong?
Try to use in the Mounted method, I believe in the computed some things are not yet ready.
– narukaioh
@narukaioh I appreciate the help, it did not work cmg pq I believe I have firebase assync error with vuex
– Lennon S. Bueno