posva / vuexfire

Check
https://github.com/vuejs/vuefire
MIT License
558 stars 49 forks source link

Mutations running, state doesn't update #200

Closed Baralabite closed 5 years ago

Baralabite commented 5 years ago

I've successfully bound to a Firestore collection (console.log on bindFirebaseRef resolve shows correct documents), and the state is obviously calling the mutations (see below), however the state doesn't actually change. Not sure what's going wrong or how to debug.

image

Is it anything to do with this mutation not actually touching the state?

image

Baralabite commented 5 years ago

I figured out the issue - I was calling this inside the initialization function of the router before Vue - this doesn't work. It appears to need to be inside a lifecycle hook in a template.