posva / vuexfire

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

Infinite Recursion? #211

Closed SumNeuron closed 5 years ago

SumNeuron commented 5 years ago

So I am using vuexfire (3.16) based on an example (see https://www.davidroyer.me/blog/nuxtjs-firebase-auth/)

and for whatever reason using the setUser mutation with the action

setProfileRef: firestoreAction(({ bindFirestoreRef }, uid) => {
    return bindFirestoreRef('profile', firebase.firestore().collection('profiles').doc(uid))
  }),

results in infinite recusion

posva commented 5 years ago

Hey, I really cannot help with this. Make sure to use the latest version of vuexfire (next tag) Even with circular refs, there is max depth limit. I don't know about the blog but I don't endorse any content beyond https://vuefire.vuejs.org.

Oh and we moved this to vuefire