Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

The auth guide and the sample still import `beforeAuthStateChanged` from `firebase/auth`

未關閉
#3,815 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 2 天內回覆

@armando-navarro 已經在處理了。

開始於 2026年10月24日。

  • #3817 來自 @armando-navarro —— 未關閉

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
25/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
angular, typescript

研究方向

Read docs/auth.md and sample/src/app/auth/auth.component.ts, then check the release versions named in the issue. Update both imports to use @angular/fire/auth and keep the compatibility note for AngularFire 20.1.0 and earlier, plus 21.0.0-rc.0 and rc.1. Done when both files use the new import and the note still identifies those affected releases.

由索引模型根據 Issue 內容生成。

描述

comp: auth comp: docs type: chore version: current (v17+)

The cookie sync in step 2 of the server-side rendering section of docs/auth.md, and sample/src/app/auth/auth.component.ts, import beforeAuthStateChanged from firebase/auth instead of @angular/fire/auth. That was a workaround for #3748: AngularFire's version kept the app marked as busy until its callback first ran, and the callback only runs when someone signs in or out.

The fix (#3770) shipped in AngularFire 20.1.1 and 21.0.0-rc.2.

So the guide and the sample can import beforeAuthStateChanged from @angular/fire/auth like the rest of the guide. The note should stay for the releases that still have the bug: 20.1.0 and earlier, and 21.0.0-rc.0 and rc.1.

主要語言
TypeScript
星號
7.8k
分支
2.2k
平均合併
2 天 6 小時
30 天內合併 PR
16

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。