polymerfire
polymerfire copied to clipboard
[Firestore Mixin] Collection (using live:true) not updating variable in realtime when new document added
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
- [ ] Chrome
- [ ] Firefox
- [ ] Safari 9
- [ ] Safari 8
- [ ] Safari 7
- [ ] Edge
- [ ] IE 11
- [ ] IE 10
@mbleigh @merlinnot any ideas/comments? Thanks!
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).