FirebaseExtended / polymerfire

Polymer Web Components for Firebase
https://www.webcomponents.org/element/firebase/polymerfire
MIT License
459 stars 142 forks source link

[Firestore Mixin] Collection (using live:true) not updating variable in realtime when new document added #343

Open derhuebiii opened 6 years ago

derhuebiii commented 6 years ago

Description

Using the Firestore Mixin I do not get collection realtime updates (using live:true) when a new document is added to a collection. If I change data within an existing document this is reflected, so realtime updates work there. I also checked with an observer, same behaviour.

Expected outcome

Update of data variable if document is added/deleted.

Actual outcome

Data is not reflected as realtime update.

Live Demo

Steps to reproduce

Browsers Affected

derhuebiii commented 6 years ago

@mbleigh @merlinnot any ideas/comments? Thanks!

merlinnot commented 6 years ago

It might be a problem with notifying Polymer of changes in an array. Can you verify that the changes are actually there after adding a document by looking at the value in a debugger or even logging it in a console (manually, from developer tools).