Title: FirebaseListObservables retrieve the initial list content twice · Issue #819 · angular/angularfire · GitHub
Open Graph Title: FirebaseListObservables retrieve the initial list content twice · Issue #819 · angular/angularfire
X Title: FirebaseListObservables retrieve the initial list content twice · Issue #819 · angular/angularfire
Description: Version info Angular: 2.4.7 Firebase: 3.6.9 AngularFire: 2.0.0-beta.7 Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A How to reproduce these conditions Failing test unit, Plunkr, or JSFiddle demonstrating the problem The...
Open Graph Description: Version info Angular: 2.4.7 Firebase: 3.6.9 AngularFire: 2.0.0-beta.7 Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A How to reproduce these conditions Failing test unit, Plunkr, o...
X Description: Version info Angular: 2.4.7 Firebase: 3.6.9 AngularFire: 2.0.0-beta.7 Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A How to reproduce these conditions Failing test unit, Plunkr, o...
Opengraph URL: https://github.com/angular/angularfire/issues/819
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"FirebaseListObservables retrieve the initial list content twice","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Firebase community!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they\r\nwill be closed. Here are some resources to get help:\r\n\r\n- Start with the README: https://github.com/angular/angularfire2\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n- Read the full API reference: https://github.com/angular/angularfire2/blob/master/docs/api-reference.md\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Angular Google Group: https://groups.google.com/forum/#!forum/angular\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal\r\nrepro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n--\u003e\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. --\u003e\r\n\r\n**Angular:** 2.4.7\r\n**Firebase:** 3.6.9\r\n**AngularFire:** 2.0.0-beta.7\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):** N/A\r\n\r\n### How to reproduce these conditions\r\n\r\n**Failing test unit, Plunkr, or JSFiddle demonstrating the problem**\r\n\r\nThere is a plunk [here](https://plnkr.co/edit/ByZmgLYXQkzymmc18RhF).\r\n\r\n**Steps to set up and reproduce**\r\n\r\nOpen the above plunk and then:\r\n\r\n* Open the Dev Tools and go to the Network tab.\r\n* Select WS or All to observe the WebSocket traffic.\r\n* Run the plunk.\r\n* There will be an entry of about 7557 bytes which is the initial content written to the database.\r\n* That entry will be followed by *two* of about 7550 bytes and those entries are the content thats read from the database.\r\n\r\nThe problem is caused by `on('child_added', ...)` not being called until *after* the `on('value')` promise has resolved.\r\n\r\n### Expected behavior\r\n\r\nWhen subscribing to a `FirebaseListObservable` that has content that exists in the database, a single copy of the content should be retrieved across the network.\r\n\r\n### Actual behavior\r\n\r\nTwo copies of the content are retrieved across the network.","author":{"url":"https://github.com/cartant","@type":"Person","name":"cartant"},"datePublished":"2017-02-10T03:08:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/819/angularfire/issues/819"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5a7c8806-6b77-5f77-71d8-a102fa1fa9b8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1CA:368174:54A8FF:6F8E59:6A5B2BE6 |
| html-safe-nonce | 3c19ac98e692cc86555b42f80908c7c4a9b7a2c105af6fa11a79967d940842bd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUNBOjM2ODE3NDo1NEE4RkY6NkY4RTU5OjZBNUIyQkU2IiwidmlzaXRvcl9pZCI6Ijk3OTMzNTE5NzYyMzAwNDEzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a231ad489712e4ba85ca20e00611245e30477aba689369a75f317d3df87b6d6d |
| hovercard-subject-tag | issue:206695900 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/819/issue_layout |
| twitter:image | https://opengraph.githubassets.com/785213a1e6bebf78490c289b16d64c8192d701b9229480b3a0132e53db51a38d/angular/angularfire/issues/819 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/785213a1e6bebf78490c289b16d64c8192d701b9229480b3a0132e53db51a38d/angular/angularfire/issues/819 |
| og:image:alt | Version info Angular: 2.4.7 Firebase: 3.6.9 AngularFire: 2.0.0-beta.7 Other (e.g. Ionic/Cordova, Node, browser, operating system): N/A How to reproduce these conditions Failing test unit, Plunkr, o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | cartant |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width