Title: Raise the `firebase` version AngularFire is built against, so functions added since 12.4.0 are wrapped · Issue #3756 · angular/angularfire · GitHub
Open Graph Title: Raise the `firebase` version AngularFire is built against, so functions added since 12.4.0 are wrapped · Issue #3756 · angular/angularfire
X Title: Raise the `firebase` version AngularFire is built against, so functions added since 12.4.0 are wrapped · Issue #3756 · angular/angularfire
Description: Summary @angular/fire re-exports the Firebase API and wraps a chosen set of functions to add Angular-specific behavior. The set it wraps is whatever the firebase version installed at build time exports. That version is currently 12.4.0, ...
Open Graph Description: Summary @angular/fire re-exports the Firebase API and wraps a chosen set of functions to add Angular-specific behavior. The set it wraps is whatever the firebase version installed at build time exp...
X Description: Summary @angular/fire re-exports the Firebase API and wraps a chosen set of functions to add Angular-specific behavior. The set it wraps is whatever the firebase version installed at build time exp...
Opengraph URL: https://github.com/angular/angularfire/issues/3756
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Raise the `firebase` version AngularFire is built against, so functions added since 12.4.0 are wrapped","articleBody":"### Summary\n\n`@angular/fire` re-exports the Firebase API and wraps a chosen set of functions to add Angular-specific behavior. The set it wraps is whatever the `firebase` version installed at build time exports. That version is currently 12.4.0, while the latest published `firebase` is 12.18.0, so every function Firebase has added in between is still reachable through `@angular/fire` but arrives without any of that behavior, and without anything telling the caller it is different.\n\n### What wrapping provides, and what an unwrapped function therefore lacks\n\n- It keeps the application marked unstable until the work finishes. Angular waits for the application to be stable before it serializes a server-rendered page, so this is what stops a page being sent to the browser with the data still in flight.\n- It restores the injection context inside callbacks you pass in, so code inside an `onSnapshot` handler can still call `inject()`.\n- It warns when a Firebase API is called outside an injection context, which is often the first sign something is wired up wrong.\n- It runs the call through Angular's zone. This matters only for applications that have not moved to zoneless change detection.\n\n### The fix\n\nRaise the `firebase` version the package is built against, then re-run `tools/build.ts`, which rewrites the 14 `src/\u003cmodule>/firebase.ts` files by reading the installed `firebase` package.\n\nWrapping is not opt-in per function. The generator wraps every exported function whose name starts with a lowercase letter, and each module has an overrides table beside it that can exclude a function, turn wrapping off for it, or change how it behaves once wrapped. So regenerating against a newer `firebase` picks up the new functions and wraps all of them by default, whether or not wrapping does anything useful for a given function.\n\nWe don't want to wrap functions that gain no benefits from it. So every function that regeneration would newly wrap has to be worked out before the files change, and each one decided on, because any that gains nothing from wrapping needs an entry in its module's overrides table in the same change. Comparing the exports of 12.4.0 against the target version, module by module, is what shows you which functions are new.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-08-31T18:30:52Z","url":"https://github.com/angular/angularfire/issues/3756"}
| 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:c5169f27-0657-6168-d97a-1d6db457c3de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBEA:C397B:89938B:AF6A32:6B035FFC |
| html-safe-nonce | 805035e68c9751762cf6fbc564eadcaed4c4c8e079954b617991b084e60aa06c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkVBOkMzOTdCOjg5OTM4QjpBRjZBMzI6NkIwMzVGRkMiLCJ2aXNpdG9yX2lkIjoiODQ0MzAxOTAyNjkxMjk5MzI3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c54cae53c8dfcf9fcd18d752ff4a799e38bcf92a6533f25fc72f607f2dd150e5 |
| hovercard-subject-tag | issue:5303546859 |
| 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/3756/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2a6276eacaa30024e35706031b750f2dca60495d135c37af09acb6b7ea861b5/angular/angularfire/issues/3756 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2a6276eacaa30024e35706031b750f2dca60495d135c37af09acb6b7ea861b5/angular/angularfire/issues/3756 |
| og:image:alt | Summary @angular/fire re-exports the Firebase API and wraps a chosen set of functions to add Angular-specific behavior. The set it wraps is whatever the firebase version installed at build time exp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | armando-navarro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width