polymerfire icon indicating copy to clipboard operation
polymerfire copied to clipboard

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

Open derhuebiii opened this issue 7 years ago • 2 comments
trafficstars

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

derhuebiii avatar May 05 '18 12:05 derhuebiii

@mbleigh @merlinnot any ideas/comments? Thanks!

derhuebiii avatar Jun 06 '18 10:06 derhuebiii

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).

merlinnot avatar Jun 06 '18 21:06 merlinnot