legacy-modules icon indicating copy to clipboard operation
legacy-modules copied to clipboard

firebase module in store

Open joshua1 opened this issue 8 years ago • 3 comments

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

This question is available on Nuxt.js community (#c70)

joshua1 avatar Aug 21 '17 12:08 joshua1

Hi @joshua1 .This is pending for vuex release for vuejs/vuex#872 and coming soon :)

pi0 avatar Aug 27 '17 05:08 pi0

@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

joshua1 avatar Aug 27 '17 07:08 joshua1

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 :(

kieusonlam avatar Nov 09 '17 07:11 kieusonlam