Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase module in store #120

Open
joshua1 opened this issue Aug 21, 2017 · 3 comments
Open

firebase module in store #120

joshua1 opened this issue Aug 21, 2017 · 3 comments

Comments

@joshua1
Copy link

joshua1 commented Aug 21, 2017

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)
@pi0
Copy link
Member

pi0 commented Aug 27, 2017

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

@joshua1
Copy link
Author

joshua1 commented Aug 27, 2017

@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

@kieusonlam
Copy link

kieusonlam commented Nov 9, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants