René's URL Explorer Experiment


Title: angularfire2@5.0.0-rc.7.0-next Change Detection Irregularities · Issue #1583 · angular/angularfire · GitHub

Open Graph Title: angularfire2@5.0.0-rc.7.0-next Change Detection Irregularities · Issue #1583 · angular/angularfire

X Title: angularfire2@5.0.0-rc.7.0-next Change Detection Irregularities · Issue #1583 · angular/angularfire

Description: I'm experiencing a reproducible change detection issue with angularfire2@5.0.0-rc.7.0-next, where the first emissions from snapshotChanges() and valueChanges() are not triggering Angular change detection appropriately. https://stackblitz...

Open Graph Description: I'm experiencing a reproducible change detection issue with angularfire2@5.0.0-rc.7.0-next, where the first emissions from snapshotChanges() and valueChanges() are not triggering Angular change det...

X Description: I'm experiencing a reproducible change detection issue with angularfire2@5.0.0-rc.7.0-next, where the first emissions from snapshotChanges() and valueChanges() are not triggering Angular change...

Mail addresses
jamesdaniels@google.com

Opengraph URL: https://github.com/angular/angularfire/issues/1583

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"angularfire2@5.0.0-rc.7.0-next Change Detection Irregularities","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 Angular and Firebase communities!\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 will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\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 repro 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-->\r\n\r\nI'm experiencing a reproducible change detection issue with `angularfire2@5.0.0-rc.7.0-next`, where the first emissions from `snapshotChanges()` and `valueChanges()` are not triggering Angular change detection appropriately.\r\n\r\n\u003chttps://stackblitz.com/edit/angular-nkqyhq>\r\n\r\nAs demonstrated in the StackBlitz example above, the first values emitted by AngularFireDatabase `valueChanges()` Observables are being populated as expected, but UI is not redrawing automatically (unless triggered manually, or by something else). Subsequent `valueChanges()` emissions appear to trigger change detection as expected, reproducible in the above example by navigating away from and back to the example routed component.\r\n\r\nThis issue first appears with the merging of #1454 (commit e343f137).\r\n\r\nI haven't had a chance to dig into it, but this behavior appears to be related to the new `FirebaseZoneScheduler`; the current implementation of the `keepUnstableUntilFirst()` method in particular has me a bit puzzled.\r\n\r\n\u003chttps://github.com/angular/angularfire2/blob/master/src/core/angularfire2.ts#L25-L33>\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. -->\r\n\r\n**Angular:** 5.2.10\r\n\r\n```\r\n% ng --version\r\n\r\n    _                      _                 ____ _     ___\r\n   / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\r\n  / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\r\n / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\r\n/_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\r\n               |___/\r\n\r\nAngular CLI: 1.7.4\r\nNode: 9.11.1\r\nOS: darwin x64\r\nAngular: 5.2.10\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, router\r\n\r\n@angular/cdk: 5.2.5\r\n@angular/cli: 1.7.4\r\n@angular/flex-layout: 5.0.0-beta.14\r\n@angular/material: 5.2.5\r\n@angular-devkit/build-optimizer: 0.3.2\r\n@angular-devkit/core: 0.3.2\r\n@angular-devkit/schematics: 0.3.2\r\n@ngtools/json-schema: 1.2.0\r\n@ngtools/webpack: 1.10.2\r\n@schematics/angular: 0.3.2\r\n@schematics/package-update: 0.3.2\r\ntypescript: 2.6.2\r\nwebpack-bundle-analyzer: 2.11.1\r\nwebpack: 3.11.0\r\n```\r\n\r\n**Firebase:** 4.12.1\r\n\r\n**AngularFire:** 5.0.0-rc.7.0-next\r\n\r\n**Browser:** Chrome OS v66.0.3359.139\r\n\r\n**Operating system:** macOS Sierra v10.12.6\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\n\u003c!-- \r\nProvide a failing test unit, or create a minimal, complete, and \r\nverifiable example (http://stackoverflow.com/help/mcve) using either \r\nPlunker (http://plnkr.co/) or JSFiddle (https://jsfiddle.net/).\r\n-->\r\n\r\n\u003chttps://stackblitz.com/edit/angular-nkqyhq>\r\n\r\n**Steps to set up and reproduce**\r\n\r\n\u003c!-- detailed instructions to run your minimal repro or to recreate the environment -->\r\n\r\n1. Create a component which injects `AngularFireDatabase`\r\n1. Subscribe to `valueChanges()` Observable\r\n1. Interpolate value change in template (will not display first result from Observable)\r\n\r\n### Debug output\r\n\r\n** Errors in the JavaScript console **\r\n\r\nNone.\r\n\r\n** Output from `firebase.database().enableLogging(true);` **\r\n\r\nNot sure how to enable this.\r\n\r\n** Screenshots **\r\n\r\nN/A\r\n\r\n### Expected behavior\r\n\r\nFirst value emitted from `AngularFireDatabase.valueChanges()` Observable consistently triggers change detection.\r\n\r\n### Actual behavior\r\n\r\nFirst value emitted from `AngularFireDatabase.valueChanges()` Observable does not consistently trigger change detection.","author":{"url":"https://github.com/byrondover","@type":"Person","name":"byrondover"},"datePublished":"2018-04-27T09:06:49Z","url":"https://github.com/angular/angularfire/issues/1583"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9972438a-4bb5-8421-01d6-3121559ad4fa
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id81F4:FDE63:22A5191:2DB89FA:6B036015
html-safe-nonce0ed93b7cbf18b89d01a8315259a62e627990fb473bd70f45790f147d2f92e697
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MUY0OkZERTYzOjIyQTUxOTE6MkRCODlGQTo2QjAzNjAxNSIsInZpc2l0b3JfaWQiOiI1Mzg4MDcxNzAxOTQ5MTQ1MTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac351ba5963ac788593acb5a7dcd55188269014c16eea901c4bee28b5da0cb2d4f
hovercard-subject-tagissue:318332387
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/1583/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9fb035c50f84121e5b06bdd4fc5ba88bea8472e207e18168974f192f4178f9da/angular/angularfire/issues/1583
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9fb035c50f84121e5b06bdd4fc5ba88bea8472e207e18168974f192f4178f9da/angular/angularfire/issues/1583
og:image:altI'm experiencing a reproducible change detection issue with angularfire2@5.0.0-rc.7.0-next, where the first emissions from snapshotChanges() and valueChanges() are not triggering Angular change det...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebyrondover
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/1583#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F1583
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F1583
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/1583
Reloadhttps://github.com/angular/angularfire/issues/1583
Reloadhttps://github.com/angular/angularfire/issues/1583
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
https://github.com/angular/angularfire
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/1583
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/1583
angularfire2@5.0.0-rc.7.0-next Change Detection Irregularitieshttps://github.com/angular/angularfire/issues/1583#top
https://github.com/jamesdaniels
https://github.com/byrondover
byrondoverhttps://github.com/byrondover
on Apr 27, 2018https://github.com/angular/angularfire/issues/1583#issue-318332387
https://stackblitz.com/edit/angular-nkqyhqhttps://stackblitz.com/edit/angular-nkqyhq
#1454https://github.com/angular/angularfire/pull/1454
e343f13https://github.com/angular/angularfire/commit/e343f137bd0ca9a1d958253b58104c64acbe3944
https://github.com/angular/angularfire2/blob/master/src/core/angularfire2.ts#L25-L33https://github.com/angular/angularfire2/blob/master/src/core/angularfire2.ts#L25-L33
https://stackblitz.com/edit/angular-nkqyhqhttps://stackblitz.com/edit/angular-nkqyhq
https://github.com/larssn
larssnhttps://github.com/larssn
on Apr 27, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-384936884
https://github.com/davideast
davideasthttps://github.com/davideast
on Apr 27, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385031055
@byrondoverhttps://github.com/byrondover
@jamesdanielshttps://github.com/jamesdaniels
https://github.com/patrickmichalina
patrickmichalinahttps://github.com/patrickmichalina
on Apr 27, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385031818
jamesdanielshttps://github.com/jamesdaniels
on Apr 30, 2018https://github.com/angular/angularfire/issues/1583#event-1602502166
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on Apr 30, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385558746
@byrondoverhttps://github.com/byrondover
https://stackblitz.com/edit/angular-fau5ia?file=app/example/example.component.tshttps://stackblitz.com/edit/angular-fau5ia?file=app/example/example.component.ts
https://github.com/byrondover
byrondoverhttps://github.com/byrondover
on May 1, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385608606
@jamesdanielshttps://github.com/jamesdaniels
https://stackblitz.com/edit/angular-bqw1xvhttps://stackblitz.com/edit/angular-bqw1xv?file=app/hello.component.ts
https://stackblitz.com/edit/angular-gjyz3ehttps://stackblitz.com/edit/angular-gjyz3e?file=app/hello.component.ts
@davideasthttps://github.com/davideast
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on May 1, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385610788
https://github.com/byrondover
byrondoverhttps://github.com/byrondover
on May 1, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385615366
jamesdanielshttps://github.com/jamesdaniels
completedhttps://github.com/angular/angularfire/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 1, 2018https://github.com/angular/angularfire/issues/1583#event-1603986440
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on May 1, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385777142
@byrondoverhttps://github.com/byrondover
https://github.com/byrondover
byrondoverhttps://github.com/byrondover
on May 2, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-385911060
@jamesdanielshttps://github.com/jamesdaniels
database/object/create-reference.tshttps://github.com/angular/angularfire2/blob/master/src/database/object/create-reference.ts
database/observable/fromRef.tshttps://github.com/angular/angularfire2/blob/master/src/database/observable/fromRef.ts
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on May 2, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-386076598
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on May 2, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-386077347
https://github.com/jamesdaniels
jamesdanielshttps://github.com/jamesdaniels
on May 2, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-386132945
@byrondoverhttps://github.com/byrondover
https://github.com/byrondover
byrondoverhttps://github.com/byrondover
on May 2, 2018https://github.com/angular/angularfire/issues/1583#issuecomment-386138935
@jamesdanielshttps://github.com/jamesdaniels
listChanges()https://github.com/angular/angularfire2/blob/master/src/database/list/changes.ts#L14-L21
#1588https://github.com/angular/angularfire/pull/1588
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angularfire/issues/1583
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/1583
jamesdanielshttps://github.com/jamesdaniels
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.