Open kr05 opened 7 years ago
Do you have a working repo we can fork and play with so we can see the issue?
I've been having similar issues, it's difficult to reproduce (it often happens when I reset, the page but not always). I'm guessing there is some race condition happening within the firebase-query element. Beyond me, I'll post a sample when I have the time.
This issue seem to be same with #170 and #263 I also have this issue, BTW I think firebase-query call multiple times which add more than one "child_added"
I have investigated it and have put it here: https://github.com/firebase/polymerfire/issues/263#issuecomment-328349397
Will try to issue a PR tomorrow for a quick fix and a long term fix that is performant. Will need to sleep on it though
I have the same issue in my app. Any progress on this?
@merlinnot I'm just busy the last week. I will do it this Sunday. :)
I have the same problem, is it solved?
Description
firbase-query is duplicating my database entries. My database has the following array:
patients: [ uid-1: object, uid-2: object ]
I am then binding the data property to a dom-repeat element, and the output is;
[uid-1, uid-2, uid-2, uid-1]
Expected outcome
dom-repeat displays [uid-1, uid-2]
Actual outcome
dom-repeat displays [uid-1, uid-2, uid-2, uid-1]
Live Demo
The relevant code is in this codeshare. The log statements for the firebase-query element is as follows:
Any help would be appreciated. I've been using polymerfire for a while now and this is the first time this happens.
Browsers Affected