Questions tagged [vuexfire]
38 questions
0
votes
1 answer
Undefined array in Vuex payload using firestore where ' in ' query
I am trying to make an 'in' query like this: db.collection('units').where('SuperID', 'in', payload)
SuperID: is a number
payload: is an array of numbers matching the SuperIDs
I am doing this so I can group users based off a document like this
Vuex…

Yewla
- 325
- 3
- 21
0
votes
1 answer
vuex + vuexfire - store objects would not update upon adding data
in the folowing code, after i update field collection it would not
update "this.fields" (which is bound to tha collection in store.js by
vuexfire rules) - only when i refresh page. please help. thanks
var newField = {
name:…

Orsha
- 1
0
votes
1 answer
Manipulating documents in Firebase collection with Vuex [Vuex/Vuexfire]
I've a simple question but I can't find the answer.
I'm using Vuexfire to import data from Firebase in Vuex.
const state = {
ricettario: [] // data that contains all recipes (objects)
}
const actions = {
// Get data from Firebase
init:…

stasera
- 66
- 1
- 8
0
votes
1 answer
Vuefire with Chart on Vue.js
I am trying to sync my chart' array data with my firebase value. Chart getting arrays for label and data. I would like to bind this Chart data value to my firebase object. Here is normal chart creation with hard coded static values:
data()
{
return…

user9310000
- 45
- 5
0
votes
0 answers
Vuexfire get values from nested object in an array
I have this shoppingLists array with 2 shopping list in it.
https://i.stack.imgur.com/kHSd0.png
I'd like to show these shopping lists like this:
https://i.stack.imgur.com/Cmc8K.png
How can I do that?
I use vuexFire, firebase and vue.
Thanks a…
-1
votes
1 answer
Classic Vuex to Modular: Why is Getter now undefined?
I am moving from classic vuex to modular vuex, but i need some help understanding how to call getters in my app. Here's what I have in store:
store/user.js:
export const state = () => ({
currentUser: null,
userProfile: {}
})
export const…

redshift
- 4,815
- 13
- 75
- 138
-1
votes
1 answer
Asynchronous VuexFire Data Fetch With Then/Catch
Given the following functioning vuex action named init that fetches a settings and an accounts collection:
actions: {
init: firestoreAction(({ bindFirestoreRef, commit }, payload) => {
bindFirestoreRef(
'settings',…

Doug Allrich
- 827
- 1
- 6
- 18
-1
votes
1 answer
Javascript ES6 How to convert a const function to a function
Trying to use vuexfire for Firebase bindings, the documentation state to insert the following action for binding
const setTodosRef = firebaseAction(({ bindFirebaseRef, unbindFirebaseRef }, { ref }) => {
// bunding will automatically unbind any…
user762579