Skip to content
This repository has been archived by the owner on Apr 19, 2019. It is now read-only.

Data added twice localy after vue router navigation where the same data references exists #33

Closed
scharinger opened this issue Feb 18, 2017 · 3 comments

Comments

@scharinger
Copy link

As I explained here i got an issue where data is added twice to the local array and once (as supposed to the remote firebase database). The issue can be reproduced with my issue demonstrator repo which is a trimmed down repo. I suspect the issue lies in the data binding but I'm unsure how to do it correctly.

@posva
Copy link
Owner

posva commented Feb 18, 2017

what is wticy?

@Tim86 The repo is still too big... Please, boil it down to the strict minimal. You should be able to do it in a jsfiddle using this as a base: https://jsfiddle.net/posva/wtyop5jy/ make sure to replace vuefire with vuexfire

@scharinger scharinger changed the title Data added wticy localy after vue router navigation where the same data references exists Data added twice localy after vue router navigation where the same data references exists Feb 18, 2017
@posva
Copy link
Owner

posva commented Feb 23, 2017

Closing, inactivity

@posva posva closed this as completed Feb 23, 2017
@nhaga
Copy link

nhaga commented Apr 22, 2018

Not sure if that was the problem, but I can share the issue i was having and how I solved it.
If you repeat "mutations: VuexFire.firebaseMutations," on each module, the state data will be repeated as many times as the number of modules.

I moved the mutations to the store index and all was good.

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

No branches or pull requests

3 participants