legacy-modules
legacy-modules copied to clipboard
firebase module in store
Hi, I am trying to use the firebase module in my vuex store. per the plugin implementation , firebase is injected into store as a property here
store.$firebase = Vue.prototype.$firebase
}
How do i access this firebase instance in store , particularly the modules implementation of store. the this instance doesn't seem to contain a $firebase property
Hi @joshua1 .This is pending for vuex release for vuejs/vuex#872 and coming soon :)
@pi0 ok, seen. I hope this comes out soon, for now am just initializing in nuxtServerInit and accessing in an import, dont like the idea of passing in as an action parameter
Is this work on vuex now? Cuz I don't know how to use it. I did try something like this.$firebase or this.firebase but no hope :(