This project demonstrates some issues with Vuefire bindings.
We have locations
and buildings
collections. A location has a reference to a building. When updating the locations
collection, Firestore triggers an update, automatically updating the Vue binding that we set up using Vuefire.
The watch on this.locations
triggers twice:
- The
building
field is stringbuildings/<someId>
- The
building
field is object{ name: 'Building 1' }
Since I set { wait: true }
on the binding and in the Vuefire global settings I expect update 1 not to happen.
npm install
npm run serve
npm run build
firebase serve
npm run lint