Title: ApplicationRef.isStable never goes to "true" when an instance of AngularFireAuth is injected · Issue #1347 · angular/angularfire · GitHub
Open Graph Title: ApplicationRef.isStable never goes to "true" when an instance of AngularFireAuth is injected · Issue #1347 · angular/angularfire
X Title: ApplicationRef.isStable never goes to "true" when an instance of AngularFireAuth is injected · Issue #1347 · angular/angularfire
Description: When AngularFireAuth is injected anywhere on the page, the ApplicationRef.isStable never emits true. This causes problems with latest @angular/service-worker, which relies on ApplicationRef.isStable to install the worker. This probably a...
Open Graph Description: When AngularFireAuth is injected anywhere on the page, the ApplicationRef.isStable never emits true. This causes problems with latest @angular/service-worker, which relies on ApplicationRef.isStabl...
X Description: When AngularFireAuth is injected anywhere on the page, the ApplicationRef.isStable never emits true. This causes problems with latest @angular/service-worker, which relies on ApplicationRef.isStabl...
Opengraph URL: https://github.com/angular/angularfire/issues/1347
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ApplicationRef.isStable never goes to \"true\" when an instance of AngularFireAuth is injected","articleBody":"When `AngularFireAuth` is injected anywhere on the page, the `ApplicationRef.isStable` never emits `true`. This causes problems with latest `@angular/service-worker`, which relies on `ApplicationRef.isStable` to install the worker. This probably also would cause server-side rendering to timeout, but I didn't test this.\r\n\r\n### Version info\r\n\r\n**Angular:** 5.0.0\r\n\r\n**Firebase:** 4.6.2\r\n\r\n**AngularFire:** 5.0.0-rc4\r\n\r\n### How to reproduce these conditions\r\n\r\nInject `AngularFireAuth` into a component and subscribe to the `ApplicationRef.isStable` observable:\r\n\r\n```ts\r\nimport { Component, ApplicationRef, ChangeDetectorRef } from '@angular/core';\r\nimport { AngularFireAuth } from 'angularfire2/auth';\r\n\r\n@Component({\r\n selector: 'my-app',\r\n templateUrl: './app.component.html',\r\n styleUrls: [ './app.component.css' ]\r\n})\r\nexport class AppComponent {\r\n constructor(appRef: ApplicationRef, af: AngularFireAuth) { \r\n appRef.isStable.subscribe(s => {\r\n console.log(s); \r\n });\r\n }\r\n}\r\n```\r\nHere is a project that reproduces the problem: https://stackblitz.com/edit/angularfire2-appref-isstable\r\n### Expected behavior\r\n\r\nThe `ApplicationRef.isStable` observable should emit `true` shortly after application is loaded.\r\n\r\n### Actual behavior\r\n\r\nThe `ApplicationRef.isStable` observable emits only initial `false` value.\r\n","author":{"url":"https://github.com/pglazkov","@type":"Person","name":"pglazkov"},"datePublished":"2017-11-19T14:22:32Z","url":"https://github.com/angular/angularfire/issues/1347"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6c9dc041-d3f1-a4de-652d-14f1714e705e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 98A2:6DC60:10DBA88:152CD7A:6B014C3D |
| html-safe-nonce | c5591743b61a5e3fbfd59af03d832133a0324927023677e942dddbad01a66d93 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEEyOjZEQzYwOjEwREJBODg6MTUyQ0Q3QTo2QjAxNEMzRCIsInZpc2l0b3JfaWQiOiI4Nzg5NDkxOTA0MDgyNDMxMDM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba3365030e9ff13f2bddadb83c04bc79758375bb655ef0b4dffcf1372b5428ef |
| hovercard-subject-tag | issue:275162649 |
| 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/1347/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fb617615fd5ec4a0ec22eb708f186eec1e5f1509a510425fc9f4cf38d6a2c119/angular/angularfire/issues/1347 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fb617615fd5ec4a0ec22eb708f186eec1e5f1509a510425fc9f4cf38d6a2c119/angular/angularfire/issues/1347 |
| og:image:alt | When AngularFireAuth is injected anywhere on the page, the ApplicationRef.isStable never emits true. This causes problems with latest @angular/service-worker, which relies on ApplicationRef.isStabl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pglazkov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width