Comments (5)
Ah, a change recently introduced in Vue 1.0.21 caused this error... it is now fixed in the dev branch, and will be out in the next release (soon). In the meanwhile you can either downgrade to 1.0.20, or build Vue core from the dev branch yourself.
Sorry about that!
from vuefire.
I'm seeing the same problem so I downgraded to 1.0.20 as suggested. This stopped the duplicate warning appearing however now duplicate data shows whenever I update Firebase.
I'm using Sortable drag and drop and when I move an item from one list to another I use a directive triggered on dragend to set the items list property to the name of the new list (I use this list name as a filter in my v-for template). This was working before the switch to Vuefire. I'd update the item property passed in the directive:
v-updatelist="task.list"
destList = $(this.el).closest("ul").attr("data-list"); //get destination list
this.set(destList); //set list property of this item to the destination list
then update Firebase:
baseTasks.child(draggedID).update({ list: destType, }, onComplete);
Now I've removed updating the Vue data (this.set) as Vuefire should handle the binding.
On dragend Firebase updates correctly but now duplicates appear on screen. I've checked the Vue data and the duplicates are not there, so issue appears to be around the v-for.
I don't see any mention of using update in your docs so wondering whether this is supported or if I'm simply going about it in the wrong way?
from vuefire.
@weislanes do you have a way to reproduce the issue you described? If yes please open a separate issue with the repro.
from vuefire.
@yyx990803 I'm currently trying to reproduce and looks like it may be an issue with the layout of slots in my app structure. Will raise separately if the issue persists after I change a few things, cheers. 👍
from vuefire.
Closing since this issue is a bit stale and it's not clear it is an issue with the actual VueFire library. If you are still having issues, let us know and we can re-open.
from vuefire.
Related Issues (20)
- Allow alternative way to set the GOOGLE_APPLICATION_CREDENTIAL without json file HOT 1
- [Vue warn]: inject() can only be used inside setup() or functional components.
- Documentation Request: How to use emulators the correct way HOT 2
- Cannot read properties of null (reading 'photoURL') HOT 4
- Unbind `useCollection` on logout
- Realtime Database does not allow `null` despite docs? HOT 1
- Documentation of useCurrentUser
- Session Cookie Options
- Firebase Auth tree shaking HOT 3
- GOOGLE_APPLICATION_CREDENTIAL alternative for monorepos HOT 8
- Make vue-fire compatible with Ionic ? HOT 10
- Broken: "firebase.json" file doesn't exist + import issue HOT 5
- documentation error HOT 1
- id field value is override by vuefire HOT 3
- typescript type definition not consistence: useDocument return null reference if document does not exist HOT 1
- Error when installing v3.1.20. - simple-git-hooks not recognized as a command HOT 6
- `databaseDefaultSerializer` exported incorrecly HOT 1
- Use multiple firestore databases HOT 1
- When using withConverter on collection it do not fetch inner refs
- returned values from `useDocument` and `useCollection` using a getter aren't reactive HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vuefire.